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: 15.0.2.11458
Syntax
C#
public static Vector3 ProjectPointToLine(
	Vector3 point,
	Vector3 p1,
	Vector3 p2
)

Parameters

point
Type: Microsoft.DirectXVector3
The point to project.
p1
Type: Microsoft.DirectXVector3
The first point on the infinite line.
p2
Type: Microsoft.DirectXVector3
The second point on the infinite line.

Return Value

Type: Vector3
The projected point.
See Also