Click or drag to resize

UtilProjectedLength Method

Calculates the length of the vector v when projected in the direction of the unit normal unitNormal.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static double ProjectedLength(
	Vector3 v,
	Vector3 unitNormal
)

Parameters

v
Type: Microsoft.DirectXVector3
The vector that is to be projected.
unitNormal
Type: Microsoft.DirectXVector3
The direction in which the vector is to be projected (must be a unit vector).

Return Value

Type: Double
The length of the vector after being projected in the specified direction.
See Also