Skip to main content

Module transform

Module transform 

Source
Expand description

2D, 3D, and camera transforms.

Each transform stores position, rotation, and scale, and can produce a 4×4 transformation matrix via calc_matrix / calc_matrices.

Structs§

CamTransform
Camera transform state with pre-computed view and projection matrices.
Transform2D
A 2D transform with position, rotation, scale, layer, and aspect ratio.
Transform3D
A 3D transform with position, rotation (Euler angles in degrees), and scale.