Expand description

Mathematical and geometrical helpers with focus on ergonomics. Note, this library is a work in progress. Documentation is therefore not adequate.

Macros

Shorthand for creating a new point. The number of arguments determine the dimensions.

Shorthand for creating a new size. The number of arguments determine the dimensions.

Structs

A bounding box, with a size and position. Also known as a rect, or rectangle.

A 2D array, representing a grid with X and Y space.

A 2D vector. You can use this for positioning or displacement.

A vector describing a two-dimensional size.

Traits

A trait to aid in the ergonomics of creating a Size2D and usage of interfaces expecting Size2D.