[][src]Module physics2d::math

Structs

Bounds

A 2D bounding volume in space.

Mat2

A square matrix of order 2.

Vec2

A 2-dimensional vector.

Constants

INFINITY

Infinity; a value that is larger than all other possible values.

PI

The mathematical constant Pi.

Traits

Cross

The vector cross product.

Functions

clamp

Clamps (limits) the value of x in the inclusive range from min to max.

clamp01

Clamps (limits) the value of x in the inclusive range from 0.0 to 1.0.