[][src]Module gramit::transform

Assorted utilities for constructing 3D homogeneous transformation and projection matrices.

Structs

Transform

A builder struct for homogeneous transformation matrices.

Functions

frustum

Construct a frustum normalization matrix.

look_at

Build a look-at view matrix.

ortho

Build an orthographic normalization matrix.

perspective

Build a perspective normalization matrix.

rotate

Get the homogeneous transformation matrix of a rotation about the given axis by the given angle.

scale

Get the homogeneous transformation matrix of a scale by the given factors.

shear_x

Get the homogeneous transformation matrix of a shear fixing the yz plane by the given amounts parallel to the y and z axes.

shear_y

Get the homogeneous transformation matrix of a shear fixing the xz plane by the given amounts parallel to the x and z axes.

shear_z

Get the homogeneous transformation matrix of a shear fixing the xy plane by the given amounts parallel to the x and y axes.

translate

Get the homogeneous transformation matrix of a translation by the given offset.