Module math

Source
Expand description

Safe wrappers for working with matrix and vector types provided by citro3d.

Structs§

ClipPlanes
Configuration for the clipping planes of a projection.
FQuat
A quaternion, internally represented the same way as FVec.
FVec
A vector of f32s.
IVec
A 4-vector of u8s.
Matrix4
A 4x4 row-major matrix of f32s.
Orthographic
See Projection::orthographic.
Perspective
See Projection::perspective.
Projection
Configuration for a 3D projection. See specific Kind implementations for constructors, e.g. Projection::perspective and Projection::orthographic.
StereoDisplacement
Configuration for calculating stereoscopic projections.

Enums§

AspectRatio
The aspect ratio of a projection plane.
CoordinateOrientation
The orientation (or “handedness”) of the coordinate system. Coordinates are always +Y-up, +X-right.
ScreenOrientation
Whether to rotate a projection to account for the 3DS screen orientation. Both screens on the 3DS are oriented such that the “top-left” of the screen in framebuffer coordinates is the physical bottom-left of the screen (i.e. the “width” is smaller than the “height”).

Type Aliases§

FVec3
A 3-vector of f32s.
FVec4
A 4-vector of f32s.