TensorMath.maxDistanceBetweenPoints
FunctionFrom the input points, finds the two points with the maximum distance between them and returns this distance.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
maxDistanceBetweenPoints(
points,pointsShape):number
From the input points, finds the two points with the maximum distance between them and returns this distance. Works with points of any dimension count.
points - Float32Array of size (point dimension count * point count). Points to find the max distance between.
pointsShape - Should be {point dimension count, point count, 1}
Parameters
| Parameter | Type |
|---|---|
points | Float32Array |
pointsShape | vec3 |
Returns
number