Documentation
¶
Overview ¶
Package mat32 provides a type for representing and manipulating a 4x4 matrix of float32.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Identity = Matrix{
{1, 0, 0, 0},
{0, 1, 0, 0},
{0, 0, 1, 0},
{0, 0, 0, 1},
}
Identity can be multiplied by another matrix to produce the same matrix.
Functions ¶
This section is empty.
Types ¶
type Matrix ¶
Matrix holds a 4x4 matrix. Each vector is a column of the matrix.
func (Matrix) Rotate ¶
Rotate post-multiplies a rotation around an axis. The angle is in radians and the axis will be normalized.
Click to show internal directories.
Click to hide internal directories.