Fixed32 struct

Derived classes

struct FixedUnit

Public static variables

static int32_t Scale constexpr
static int64_t Scale64 constexpr

Public static functions

static auto FromRaw(int32_t raw) -> Fixed32 constexpr
static auto FromInt(int32_t i) -> Fixed32 constexpr
static auto FromFloat(float f) -> Fixed32 constexpr
static auto FromDouble(double f) -> Fixed32 constexpr

Constructors, destructors, conversion operators

Fixed32() constexpr
Fixed32(const int32_t i) constexpr

Public functions

auto Raw() const -> int32_t constexpr
auto ToFloat() const -> float constexpr
auto ToDouble() const -> double constexpr
auto operator+() const -> Fixed32 constexpr
auto operator-() const -> Fixed32 constexpr
auto operator++() -> Fixed32& constexpr
auto operator--() -> Fixed32& constexpr
auto operator++(int) -> Fixed32 constexpr
auto operator--(int) -> Fixed32 constexpr
auto operator+=(Fixed32 rhs) -> Fixed32& constexpr
auto operator-=(Fixed32 rhs) -> Fixed32& constexpr
auto operator*=(Fixed32 rhs) -> Fixed32& constexpr
auto operator/=(Fixed32 rhs) -> Fixed32& constexpr
auto operator%=(Fixed32 rhs) -> Fixed32& constexpr
auto operator+=(int32_t rhs) -> Fixed32& constexpr
auto operator-=(int32_t rhs) -> Fixed32& constexpr
auto operator*=(int32_t rhs) -> Fixed32& constexpr
auto operator/=(int32_t rhs) -> Fixed32& constexpr

Public variables

int32_t value

Friends

auto operator<=>(Fixed32 a, Fixed32 b) -> auto defaulted constexpr
auto operator==(Fixed32 a, Fixed32 b) -> bool defaulted constexpr