Module veloren_common::util::dir
source · Structs§
- 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§
- Begone ye NaN’s Slerp two
Vec3
s skipping the slerp if their directions are very close This avoids a case wherevek
s slerp produces NaN’s Additionally, it avoids unnecessary calculations if they are near identical Assumesfrom
andto
are normalized and returns a normalized vector - Begone ye NaN’s Slerp two
Vec3
s skipping the slerp if their directions are very close This avoids a case wherevek
s slerp produces NaN’s Additionally, it avoids unnecessary calculations if they are near identical Assumesfrom
is normalized and returns a normalized vector, butto
doesn’t need to be normalized ReturnsErr(from)`` if
to` is unnormalizable