ofDocsdocumentation glm gtxmatrix_transform_2d (functions)

gtxmatrix_transform_2d (functions)


glm::rotate( ... )

glm::mat3 glm::rotate(const glm::mat3 &m=P, T angle)

Builds a rotation 3 * 3 matrix created from an angle.

Parameters:

m Input matrix multiplied by this translation matrix.

angle Rotation angle expressed in radians if GLM_FORCE_RADIANS is defined or degrees otherwise.


glm::scale( ... )

glm::mat3 glm::scale(const glm::mat3 &m=P, const glm::vec2 &v=P)

Builds a scale 3 * 3 matrix created from a vector of 2 components.

Parameters:

m Input matrix multiplied by this translation matrix.

v Coordinates of a scale vector.


glm::shearX( ... )

glm::mat3 glm::shearX(const glm::mat3 &m=P, T y)

Builds an horizontal (parallel to the x axis) shear 3 * 3 matrix.

Parameters:

m Input matrix multiplied by this translation matrix.

y Shear factor.


glm::shearY( ... )

glm::mat3 glm::shearY(const glm::mat3 &m=P, T x)

Builds a vertical (parallel to the y axis) shear 3 * 3 matrix.

Parameters:

m Input matrix multiplied by this translation matrix.

x Shear factor.


glm::translate( ... )

glm::mat3 glm::translate(const glm::mat3 &m=P, const glm::vec2 &v=P)

Builds a translation 3 * 3 matrix created from a vector of 2 components.

Parameters:

m Input matrix multiplied by this translation matrix.

v Coordinates of a translation vector.