Whether the vector has length approximately equal to 1.
Namespace:
Demo3D.Common
Assembly:
Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntaxpublic 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:
BooleanTrue if the vector has unit length within the specified tolerance, false otherwise.
See Also