numem.core.math

Numem math helpers.

Members

Functions

nu_aligndown
T nu_aligndown(T value, T alignment)

Aligns the given value down the given alignment.

nu_alignup
T nu_alignup(T value, T alignment)

Aligns the given value up to the given alignment.

nu_is_aligned
bool nu_is_aligned(T value, size_t alignment)

Gets whether value is aligned to alignment

nu_max
T nu_max(T a, T b)

Gets the largest value between a and b

nu_min
T nu_min(T a, T b)

Gets the lowest value between a and b

Meta

Authors

Luna Nielsen