Condividi tramite


GestureUtils.TemporalSampling(GestureStroke, Int32) Method

Definition

Samples a stroke temporally into a given number of evenly-distributed points.

[Android.Runtime.Register("temporalSampling", "(Landroid/gesture/GestureStroke;I)[F", "")]
public static float[]? TemporalSampling (Android.Gestures.GestureStroke? stroke, int numPoints);
[<Android.Runtime.Register("temporalSampling", "(Landroid/gesture/GestureStroke;I)[F", "")>]
static member TemporalSampling : Android.Gestures.GestureStroke * int -> single[]

Parameters

stroke
GestureStroke

the gesture stroke to be sampled

numPoints
Int32

the number of points

Returns

Single[]

the sampled points in the form of [x1, y1, x2, y2, ..., xn, yn]

Attributes

Remarks

Samples a stroke temporally into a given number of evenly-distributed points.

Java documentation for android.gesture.GestureUtils.temporalSampling(android.gesture.GestureStroke, int).

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