Dela via


PathMeasure.GetPosTan(Single, Single[], Single[]) Method

Definition

Pins distance to 0 <= distance <= getLength(), and then computes the corresponding position and tangent.

[Android.Runtime.Register("getPosTan", "(F[F[F)Z", "GetGetPosTan_FarrayFarrayFHandler")]
public virtual bool GetPosTan (float distance, float[]? pos, float[]? tan);
[<Android.Runtime.Register("getPosTan", "(F[F[F)Z", "GetGetPosTan_FarrayFarrayFHandler")>]
abstract member GetPosTan : single * single[] * single[] -> bool
override this.GetPosTan : single * single[] * single[] -> bool

Parameters

distance
Single

The distance along the current contour to sample

pos
Single[]

If not null, returns the sampled position (x==[0], y==[1])

tan
Single[]

If not null, returns the sampled tangent (x==[0], y==[1])

Returns

false if there was no path associated with this measure object

Attributes

Remarks

Pins distance to 0 <= distance <= getLength(), and then computes the corresponding position and tangent. Returns false if there is no path, or a zero-length path was specified, in which case position and tangent are unchanged.

Java documentation for android.graphics.PathMeasure.getPosTan(float, float[], float[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to