|
| constexpr | Vec3 (void)=default |
| | Default constructor.
|
| |
| constexpr | Vec3 (T x, T y, T z) noexcept |
| | Parameterized constructor.
|
| |
| constexpr | ~Vec3 ()=default |
| | Default destructor.
|
| |
| constexpr bool | operator== (const Vec3 &) const noexcept=default |
| | Checks if two vectors are exactly equal.
|
| |
| constexpr auto & | operator[] (this auto &self, size_t index) noexcept |
| | Accesses the coordinate at the specified index.
|
| |
| constexpr auto | cross (const Vec3 &other) const noexcept -> Vec3 |
| | The cross product of two 3D vectors.
|
| |
| constexpr auto | squaredDistance (this const Self &self, const std::remove_cvref_t< Self > &other) noexcept -> T |
| |
| constexpr auto | distance (this const Self &self, const std::remove_cvref_t< Self > &other) noexcept -> RealT |
| |
| constexpr auto | squaredLength (this const Self &self) noexcept -> T |
| |
| constexpr auto | length (this const Self &self) noexcept -> RealT |
| |
| constexpr auto | normalize (this Self &self) noexcept -> Self & |
| |
| constexpr auto | normalized (this const Self &self) noexcept -> std::remove_cvref_t< Self > |
| |
| constexpr auto | dot (this const Self &self, const std::remove_cvref_t< Self > &other) noexcept -> T |
| |
| constexpr auto | project (this const Self &self, const std::remove_cvref_t< Self > &other) noexcept -> std::remove_cvref_t< Self > |
| |
| constexpr auto & | operator+= (this Self &self, const std::remove_cvref_t< Self > &other) noexcept |
| |
| constexpr auto & | operator+= (this Self &self, T scalar) noexcept |
| |
| constexpr auto & | operator-= (this Self &self, const std::remove_cvref_t< Self > &other) noexcept |
| |
| constexpr auto & | operator-= (this Self &self, T scalar) noexcept |
| |
| constexpr auto & | operator*= (this Self &self, const std::remove_cvref_t< Self > &other) noexcept |
| |
| constexpr auto & | operator*= (this Self &self, T scalar) noexcept |
| |
| constexpr auto & | operator/= (this Self &self, const std::remove_cvref_t< Self > &other) noexcept |
| |
| constexpr auto & | operator/= (this Self &self, T scalar) noexcept |
| |
template<Numeric T>
struct rtp::Vec3< T >
A 3-dimensional vector.
- Template Parameters
-
| T | Must be an integral or floating-point type. |
Definition at line 53 of file Vec3.hpp.