Click or drag to resize

UtilDistanceTo(Vector3, Vector3, Vector3) Method

Find the distance of a point from a line.

See this page.


Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public static double DistanceTo(
	Vector3 p,
	Vector3 v1,
	Vector3 v2
)

Parameters

p  Vector3
Point to test.
v1  Vector3
First point on line.
v2  Vector3
Second point on line.

Return Value

Double
Distance of point from line.
See Also