Module mat2x2

Source
Expand description

2D entities with 2 along both dimensions. Useful for 2D graphics.

Modules§

exposed
Exposed namespace of the module.
orphan
Orphan namespace of the module.
own
Own namespace of the module.
prelude
Prelude to use essentials: use my_module::prelude::*.

Functions§

reflect_x
Produces a 2D reflection matrix across the x-axis.
reflect_y
Produces a 2D reflection matrix across the y-axis.
rot
Produces a 2D rotation matrix for a given angle in radians.
scale
Produces a 2D scaling matrix.
shear
Produces a 2D shearing matrix.