Module dir

Source

Structs§

Dir
Type representing a direction using Vec3 that is normalized and NaN free These properties are enforced actively via panics when debug_assertions is enabled
SerdeDir 🔒

Functions§

slerp_normalized 🔒
Begone ye NaN’s Slerp two Vec3s skipping the slerp if their directions are very close This avoids a case where veks slerp produces NaN’s Additionally, it avoids unnecessary calculations if they are near identical Assumes from and to are normalized and returns a normalized vector
slerp_to_unnormalized 🔒
Begone ye NaN’s Slerp two Vec3s skipping the slerp if their directions are very close This avoids a case where veks slerp produces NaN’s Additionally, it avoids unnecessary calculations if they are near identical Assumes from is normalized and returns a normalized vector, but to doesn’t need to be normalized Returns Err(from)`` if to` is unnormalizable