TensorMath.approximatePolygonalCurve
FunctionApproximates a polygonal curve with the specified precision.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
approximatePolygonalCurve(
inTensor,inShape,epsilon,closed,outTensor):number
Approximates a polygonal curve with the specified precision.
Parameters
| Parameter | Type |
|---|---|
inTensor | Float32Array |
inShape | vec3 |
epsilon | number |
closed | boolean |
outTensor | Float32Array |
Returns
number