Point Distance
DataTarget independent
geometry.point-distanceCalculate straight-line distance between two points with the same unit; the result uses that unit and mixed units fail.
Example use
Measure the distance from the current position to a target point using matching units.
Node preview
Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.
Loading node preview…
Data inputs 2
- Start point
beginPoint The starting point for the distance, using the same unit as the end point.
RequiredDefault:NoneValue format examples
{"unit":"ratio","x":0.5,"y":0.5}{"unit":"px","x":640,"y":360}- End point
endPoint The end position; the required index or coordinate type is shown below.
RequiredDefault:NoneValue format examples
{"unit":"ratio","x":0.5,"y":0.5}{"unit":"px","x":640,"y":360}
Data outputs 1
- Result
resultNumber The result of this data operation, with its type determined by the matching inputs.
Version and node identity
Version 1.0.0
sha256:fdb17180e240d06fd3118e87e01a6bd2694c82cac9ba3a40acc116440ca1ba37