Math & Determinism module

Fixed32 fixed-point scalar (0.1 mm precision, bit-identical across platforms), SimFloat alias, FixedTrig, VecMath utilities.

Classes

struct Fixed32
struct FixedUnit

Functions

auto operator+(Fixed32 a, Fixed32 b) -> Fixed32 constexpr
auto operator-(Fixed32 a, Fixed32 b) -> Fixed32 constexpr
auto operator*(Fixed32 a, Fixed32 b) -> Fixed32 constexpr
auto operator/(Fixed32 a, Fixed32 b) -> Fixed32 constexpr
auto operator%(Fixed32 a, Fixed32 b) -> Fixed32 constexpr
auto operator+(Fixed32 a, int32_t b) -> Fixed32 constexpr
auto operator+(int32_t a, Fixed32 b) -> Fixed32 constexpr
auto operator-(Fixed32 a, int32_t b) -> Fixed32 constexpr
auto operator-(int32_t a, Fixed32 b) -> Fixed32 constexpr
auto operator*(Fixed32 a, int32_t b) -> Fixed32 constexpr
auto operator*(int32_t a, Fixed32 b) -> Fixed32 constexpr
auto operator/(Fixed32 a, int32_t b) -> Fixed32 constexpr
auto operator/(int32_t a, Fixed32 b) -> Fixed32 constexpr
auto operator+(FixedUnit a, FixedUnit b) -> FixedUnit constexpr
auto operator-(FixedUnit a, FixedUnit b) -> FixedUnit constexpr
auto operator*(FixedUnit a, FixedUnit b) -> FixedUnit constexpr
auto operator/(FixedUnit a, FixedUnit b) -> FixedUnit constexpr
auto operator+(FixedUnit a, int32_t b) -> FixedUnit constexpr
auto operator+(int32_t a, FixedUnit b) -> FixedUnit constexpr
auto operator-(FixedUnit a, int32_t b) -> FixedUnit constexpr
auto operator-(int32_t a, FixedUnit b) -> FixedUnit constexpr
auto operator*(FixedUnit a, int32_t b) -> FixedUnit constexpr
auto operator*(int32_t a, FixedUnit b) -> FixedUnit constexpr
auto operator/(FixedUnit a, int32_t b) -> FixedUnit constexpr
auto operator*(Fixed32 a, FixedUnit b) -> Fixed32 constexpr
auto operator*(FixedUnit a, Fixed32 b) -> Fixed32 constexpr
auto FixedSqrt(Fixed32 x) -> Fixed32 constexpr

Function documentation

Fixed32 operator+(Fixed32 a, int32_t b) constexpr

Fixed32 operator+(int32_t a, Fixed32 b) constexpr

Fixed32 operator-(Fixed32 a, int32_t b) constexpr

Fixed32 operator-(int32_t a, Fixed32 b) constexpr

Fixed32 operator*(Fixed32 a, int32_t b) constexpr

Fixed32 operator*(int32_t a, Fixed32 b) constexpr

Fixed32 operator/(Fixed32 a, int32_t b) constexpr

Fixed32 operator/(int32_t a, Fixed32 b) constexpr