Computes the distance between two objects represented as:
Returns the minimum distance. If the distance cannot be computed, returns -1. When requested, anchor points on the measured objects are written to the output tuple. The tuple is left unchanged when the distance cannot be computed.
new Distance():
Distance
Distance
staticcompute(first,second,points?):number
Computes the distance between two supported objects.
First object.
Second object.
Optional output tuple receiving the closest points on the measured objects.
number
staticcompute(first,second,firstTransformation,secondTransformation,points?):number
Computes the distance between two supported objects.
First object.
Second object.
Transformation | null
Transformation applied to the first object.
Transformation | null
Transformation applied to the second object.
Optional output tuple receiving the closest points on the measured objects.
number