package
0.0.0-20240502073936-1137f6adf7e9
Repository: https://github.com/ungerik/go3d.git
Documentation: pkg.go.dev
# Functions
Dot returns the dot product of two quaternions.
FromAxisAngle returns a quaternion representing a rotation around and axis.
FromEulerAngles returns a quaternion representing Euler angle(in radian) rotations.
FromVec4 converts a vec4.T into a quaternion.
FromXAxisAngle returns a quaternion representing a rotation around the x axis.
FromYAxisAngle returns a quaternion representing a rotation around the y axis.
FromZAxisAngle returns a quaternion representing a rotation around the z axis.
IsShortestRotation returns if the rotation from a to b is the shortest possible rotation.
Mul multiplies two quaternions.
Mul3 multiplies three quaternions.
Mul4 multiplies four quaternions.
Parse parses T from a string.
Slerp returns the spherical linear interpolation quaternion between a and b at t (0,1).
Vec3Diff returns the rotation quaternion between two vectors.
# Type aliases
T represents a orientatin/rotation as a unit quaternion.