39#ifndef RTYPE_VEC3_HPP_
40 #define RTYPE_VEC3_HPP_
59 constexpr Vec3(
void) =
default;
78 constexpr auto &
operator[](
this auto &self,
size_t index)
noexcept;
84 constexpr auto cross(
const Vec3 &other)
const noexcept
Assertion and verification macros for runtime checks.
Declaration of the CRTP base vector class.
constexpr auto & operator[](this auto &self, size_t index) noexcept
Accesses the coordinate at the specified index.
constexpr Vec3(void)=default
Default constructor.
constexpr auto cross(const Vec3 &other) const noexcept -> Vec3
The cross product of two 3D vectors.
constexpr ~Vec3()=default
Default destructor.
constexpr bool operator==(const Vec3 &) const noexcept=default
Checks if two vectors are exactly equal.
constexpr Vec3(T x, T y, T z) noexcept
Parameterized constructor.
CRTP base class for vectors.