39#ifndef RTYPE_VEC2_HPP_
40 #define RTYPE_VEC2_HPP_
58 constexpr Vec2(
void) =
default;
77 constexpr auto &
operator[](
this auto &self,
size_t index)
noexcept;
Assertion and verification macros for runtime checks.
Declaration of the CRTP base vector class.
constexpr Vec2(void)=default
Default constructor.
constexpr bool operator==(const Vec2 &) const noexcept=default
Checks if two vectors are exactly equal.
constexpr Vec2(T x, T y) noexcept
Parameterized constructor.
constexpr ~Vec2()=default
Default destructor.
constexpr auto & operator[](this auto &self, size_t index) noexcept
Accesses the coordinate at the specified index.
CRTP base class for vectors.