Skip to content

cf_norm

Category: math
GitHub: cute_math.h


Returns a normalized vector.

#define cf_norm(a)

Remarks

Normalized vectors have unit-length without changing the vector's direction. Fails if the vector has a length of zero.

CF_V2
cf_len
cf_distance
cf_safe_norm