public distanceTo(notnull other as Point3d<NUMBER>) as Double
Computes the Euclidean distance using scaled hypot operations. Integer differences are formed before conversion when subtraction fits their domain; opposite-sign signed endpoints are widened before subtraction.
| Parameter | Description |
|---|---|
other | Target position. |
Non-negative Double distance.
assert Point3d<Int>().distanceTo(Point3d<Int>(1, 2, 2)) == 3.0