UtilDistanceTo(Vector2, Vector2, Vector2) Method |
Find the distance of a point from a line.
See this page.
Namespace: Demo3D.CommonAssembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntaxpublic static double DistanceTo(
Vector2 p,
Vector2 v1,
Vector2 v2
)
Parameters
- p Vector2
- Point to test.
- v1 Vector2
- First point on line.
- v2 Vector2
- Second point on line.
Return Value
DoubleDistance of point from line.
See Also