Expand description
Matrices and linear and affine transforms.
TODO Docs
Structs§
- Matrix
- A generic matrix type.
- Real
ToProj - Mapping from real to projective space.
- Real
ToReal - A change of basis in real vector space of dimension
DIM.
Traits§
- Apply
- Trait for applying a transform to a type.
- Compose
- Composition of two
LinearMaps,Self∘Inner. - Linear
Map - A linear transform from one space (or basis) to another.
Functions§
- orient_
y - Returns a matrix applying a rotation such that the original y-axis
is now parallel with
new_yand the new z axis is orthogonal to bothxandnew_y. - orient_
z - Returns a matrix applying a rotation such that the original z axis
is now parallel with
new_zand the new y-axis is orthogonal to bothnew_zandx. - orthographic
- Creates an orthographic projection matrix.
- perspective
- Creates a perspective projection matrix.
- rotate
- Returns a matrix applying a 3D rotation about an arbitrary axis.
- rotate2
- Returns a matrix applying a 2D rotation by an angle.
- rotate_
x - Returns a matrix applying a 3D rotation about the x-axis.
- rotate_
y - Returns a matrix applying a 3D rotation about the y-axis.
- rotate_
z - Returns a matrix applying a 3D rotation about the z axis.
- scale
- Returns a matrix applying a scaling by
s. - scale3
- translate
- Returns a matrix applying a translation by
t. - translate3
- viewport
- Creates a viewport transform matrix with the given pixel space bounds.