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: 19.01.00
Syntax
C#
public static bool IsUnitVector(
	Vector3 v,
	float epsilon = 1E-05f
)

Parameters

v  Vector3
The vector.
epsilon  Single  (Optional)
The tolerance.

Return Value

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