is_unit_vector#

static GeometryOperators.is_unit_vector(v: list, tol: float = None) bool#

Check if a vector is a unit vector.

Parameters:
vList or tuple

List of (x1, x2, x3) coordinates for the vector.

tolfloat, optional

Linear tolerance. The default value is None. If not specified, the value is set to MathUtils.EPSILON.

Returns:
bool

True if the vector is a unit vector, False otherwise.