Click or drag to resize

UtilProjectPointToLine Method

Projects the specified point onto the infinite line passing through the two points p1 and p2.

Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public static Vector3 ProjectPointToLine(
	Vector3 point,
	Vector3 p1,
	Vector3 p2
)

Parameters

point  Vector3
The point to project.
p1  Vector3
The first point on the infinite line.
p2  Vector3
The second point on the infinite line.

Return Value

Vector3
The projected point.
See Also