Click or drag to resize

UtilIsUnitVector Method

Whether the vector has length approximately equal to 1.

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static bool IsUnitVector(
	Vector3 v,
	float epsilon = 1E-05f
)

Parameters

v
Type: Microsoft.DirectXVector3
The vector.
epsilon (Optional)
Type: SystemSingle
The tolerance.

Return Value

Type: Boolean
True if the vector has unit length within the specified tolerance, false otherwise.
See Also