Documentation ¶
Overview ¶
Math for working with normals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Quaternion ¶
type Quaternion struct {
X, Y, Z, W float64
}
func (*Quaternion) FromAngle ¶
func (q *Quaternion) FromAngle(a Angle)
func (*Quaternion) FromNormal64 ¶
func (q *Quaternion) FromNormal64(n vgimage.Normal64)
Produces the same result as Angle.FromNormal64() followed by Quaternion.FromAngle(), but faster.
func (Quaternion) Multiply ¶
func (q Quaternion) Multiply(other Quaternion) Quaternion
func (*Quaternion) Normal64 ¶
func (q *Quaternion) Normal64() vgimage.Normal64
Produces the same result as Quaternion.ToAngle() followed by Angle.Normal64(), but faster.
func (*Quaternion) Normalize ¶
func (q *Quaternion) Normalize()
func (*Quaternion) ToAngle ¶
func (q *Quaternion) ToAngle(a *Angle)
Click to show internal directories.
Click to hide internal directories.