|
Box2D
3.0.0
A Real-Time-Oriented 2-D Physics Engine
|
#include <Fixed.hpp>
Public Types | |
| enum | ComparatorResult { ComparatorResult::Incomparable, ComparatorResult::Equal, ComparatorResult::LessThan, ComparatorResult::GreaterThan } |
| using | value_type = BASE_TYPE |
Public Member Functions | |
| Fixed ()=default | |
| constexpr | Fixed (long double val) noexcept |
| constexpr | Fixed (double val) noexcept |
| constexpr | Fixed (float val) noexcept |
| constexpr | Fixed (unsigned long long val) noexcept |
| constexpr | Fixed (unsigned long val) noexcept |
| constexpr | Fixed (unsigned int val) noexcept |
| constexpr | Fixed (long long val) noexcept |
| constexpr | Fixed (int val) noexcept |
| constexpr | Fixed (short val) noexcept |
| constexpr | Fixed (value_type val, unsigned int fraction) noexcept |
| template<typename BT , unsigned int FB> | |
| constexpr | Fixed (const Fixed< BT, FB > val) noexcept |
| template<typename T > | |
| constexpr T | ConvertTo () const noexcept |
| constexpr ComparatorResult | Compare (const Fixed other) const noexcept |
| constexpr | operator long double () const noexcept |
| constexpr | operator double () const noexcept |
| constexpr | operator float () const noexcept |
| constexpr | operator long long () const noexcept |
| constexpr | operator long () const noexcept |
| constexpr | operator unsigned long long () const noexcept |
| constexpr | operator unsigned long () const noexcept |
| constexpr | operator unsigned int () const noexcept |
| constexpr | operator int () const noexcept |
| constexpr | operator short () const noexcept |
| constexpr Fixed | operator- () const noexcept |
| constexpr Fixed | operator+ () const noexcept |
| constexpr | operator bool () const noexcept |
| constexpr bool | operator! () const noexcept |
| constexpr Fixed & | operator+= (Fixed val) noexcept |
| constexpr Fixed & | operator-= (Fixed val) noexcept |
| constexpr Fixed & | operator*= (Fixed val) noexcept |
| constexpr Fixed & | operator/= (Fixed val) noexcept |
| constexpr Fixed & | operator%= (Fixed val) noexcept |
Static Public Member Functions | |
| static constexpr Fixed | GetMin () noexcept |
| static constexpr Fixed | GetInfinity () noexcept |
| static constexpr Fixed | GetMax () noexcept |
| static constexpr Fixed | GetNaN () noexcept |
| static constexpr Fixed | GetNegativeInfinity () noexcept |
| static constexpr Fixed | GetLowest () noexcept |
| template<typename T > | |
| static constexpr value_type | GetFromFloat (T val) noexcept |
| template<typename T > | |
| static constexpr value_type | GetFromSignedInt (T val) noexcept |
| template<typename T > | |
| static constexpr value_type | GetFromUnsignedInt (T val) noexcept |
Static Public Attributes | |
| static constexpr unsigned int | FractionBits = FRACTION_BITS |
| static constexpr value_type | ScaleFactor = static_cast<value_type>(1u << FractionBits) |
This is a fixed point type template for a given base type using a given number of fraction bits.
This is a 32-bit sized fixed point type with a 18.14 format. With a 14-bit fraction part:
| using box2d::Fixed< BASE_TYPE, FRACTION_BITS >::value_type = BASE_TYPE |
|
strong |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
static |
|
static |
1.8.14