語言

GestureUtils.TemporalSampling(GestureStroke, Int32) 方法

定義

將筆劃在時間上取樣成給定數量的均勻分布點。

[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[]

參數

stroke
GestureStroke

要取樣的手勢筆劃

numPoints
Int32

分數

傳回

Single[]

取樣點形式為 [x1, y1, x2, y2, ..., xn, yn]

屬性

備註

將筆劃在時間上取樣成給定數量的均勻分布點。

Java 文件 android.gesture.GestureUtils.temporalSampling(android.gesture.GestureStroke, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於