Module storm::math

source · []
Expand description

Math utilities.

Structs

Provides tools for interacting with and creating axis aligned bounding boxes in 2D.

Provides functions for interpolating between two f32s.

Simple camera for orthographic projections.

Simple camera for perspective projections. +Y is up, right handed system. Depth is inverted.

Constants

Simple const identity matrix.

Represents pi.

Represents pi / 2.

Represents -pi / 2.

Represents 2 * pi.

Traits

Extra functions on floating point values.

Extra functions on unsigned integers.

Functions

Fast Vector2 normalization.

Linearly interpolates between a and b by t.

Creates an orthographic matrix from screen bounds with a fixed aspect ratio and with 0,0 in the center.