UtilBoundedDistanceTo(Vector3, Vector3, Vector3) Method |
Find the distance of a point from a line segment.
Namespace: Demo3D.CommonAssembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntaxpublic static double BoundedDistanceTo(
Vector3 p,
Vector3 v1,
Vector3 v2
)
Parameters
- p Vector3
- Point to test.
- v1 Vector3
- Start of line segment.
- v2 Vector3
- End of line segment.
Return Value
DoubleDistance of point from line segment.
See Also