|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
#include <GREM/core/math.hpp>
Public Types | |
| using | Component = T |
Public Member Functions | |
| GREM_ALWAYS_INLINE constexpr | vec () noexcept=default |
| template<typename U> | |
| GREM_ALWAYS_INLINE constexpr | vec (vec< 2, U > v) noexcept |
| GREM_ALWAYS_INLINE constexpr | vec (T value) noexcept |
| GREM_ALWAYS_INLINE constexpr | vec (T x, T y) noexcept |
| template<typename U> | |
| GREM_ALWAYS_INLINE constexpr | operator vec< 1, U > () const noexcept |
| GREM_ALWAYS_INLINE constexpr bool | operator== (const vec &) const noexcept=default |
| GREM_ALWAYS_INLINE constexpr Component & | operator[] (size_t i) |
| GREM_ALWAYS_INLINE constexpr const Component & | operator[] (size_t i) const |
| GREM_ALWAYS_INLINE constexpr size_t | size () const noexcept |
Public Attributes | |
| T | x {} |
| T | y {} |
Static Public Attributes | |
| static constexpr size_t | RANK = 2 |
| using grem::vec< 2, T >::Component = T |
|
constexprdefaultnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
nodiscardconstexprdefaultnoexcept |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexprnoexcept |
|
staticconstexpr |
| T grem::vec< 2, T >::x {} |
| T grem::vec< 2, T >::y {} |