|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Abstract physical quantity representing the origin of the global world space reference frame, or the relative value 0 of any unit. More...
#include <GREM/physics/quantities.hpp>
Public Member Functions | |
| GREM_ALWAYS_INLINE consteval | Zero (float value) |
| Explicitly construct a zero from a compile-time float. | |
| GREM_ALWAYS_INLINE consteval | Zero (double value) |
| Explicitly construct a zero from a compile-time double. | |
| GREM_ALWAYS_INLINE consteval | Zero (int value) |
| Explicitly construct a zero from a compile-time int. | |
| GREM_ALWAYS_INLINE consteval | Zero (Zero *value) |
| Implicitly convert a compile-time 0 literal to a zero. | |
Abstract physical quantity representing the origin of the global world space reference frame, or the relative value 0 of any unit.
Designed to be implicitly convertible from a 0 literal, or constructed from a compile-time value of 0, but nothing else.
|
inlineexplicitconsteval |
Explicitly construct a zero from a compile-time float.
| value | value to construct the zero from. Must be equal to 0.0f. |
| physics::Error | if the value is not equal to 0.0f. |
|
inlineexplicitconsteval |
Explicitly construct a zero from a compile-time double.
| value | value to construct the zero from. Must be equal to 0.0. |
| physics::Error | if the value is not equal to 0.0. |
|
inlineexplicitconsteval |
Explicitly construct a zero from a compile-time int.
| value | value to construct the zero from. Must be equal to 0. |
| physics::Error | if the value is not equal to 0. |
|
inlineconsteval |
Implicitly convert a compile-time 0 literal to a zero.
This constructor will match 0 literals since the C++ standard has a special case where a literal 0 may implicitly convert to a null pointer, whereas other integer values may not.
| value | a literal 0. Must be equal to nullptr. |
| physics::Error | if the value is not equal to nullptr. |