Skip to content

cf_norm

Category: math
GitHub: cute_math.h


Returns a normalized vector.

CF_V2 cf_norm(CF_V2 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