point3.distance
The Euclidean distance between two points in space.
Usage
Point3.distance(a: Point3, b: Point3): numberParameters
aPoint3First point. Required. In model.
bPoint3Second point. Required. In model.
Returns
A non-negative distance in model units; NaN when a coordinate is NaN or two infinities cancel. Infinity when a difference is infinite.
Use instead
line.length: the two points are already aLine
Example
Point3.distance(Point3.origin, Point3.of(3, 4, 0)) // → 5