Crate versor

Source

Structs§

Quaternion
Represents a quaternion.
Vec3
Represents a 3-dimensional vector.

Functions§

cartesian
Returns Cartesian coordinates [x, y, z] given spherical coordinates [λ, φ].
delta
Returns the quaternion to rotate between two cartesian points on the sphere. The value alpha, ranging from 0 to 1, is for tweening. See https://github.com/Fil/versor/issues/8 for more.
interpolate
Interpolate between two quaternions.
linear_interpolate
Interpolate linearly between two quaternions.

Type Aliases§

InterpolationFn
The type for interpolation functions.
SphericalCoordinate
Represents a spherical coordinate.