|
SleakEngine 0.1.0
C++23 multi-backend game engine
|
#include <Vector.hpp>
Public Member Functions | |
| constexpr | Vector () noexcept |
| constexpr | Vector (std::initializer_list< T > list) |
| template<size_t M = N> | |
| std::enable_if< M==3, Vector< T, N > >::type | Cross (const Vector< T, N > &other) const |
| T | Dot (const Vector< T, N > &other) const |
| T | Magnitude () const |
| void | Normalize () |
| Vector< T, N > | Normalized () const |
| bool | operator!= (const Vector< T, N > &other) const |
| Vector< T, N > | operator* (T scalar) const |
| Vector< T, N > | operator+ (const Vector< T, N > &other) const |
| Vector< T, N > & | operator+= (const Vector< T, N > &other) |
| Vector< T, N > | operator- (const Vector< T, N > &other) const |
| Vector< T, N > & | operator-= (const Vector< T, N > &other) |
| Vector< T, N > | operator/ (T scalar) const |
| bool | operator== (const Vector< T, N > &other) const |
| T & | operator[] (size_t index) |
| const T & | operator[] (size_t index) const |
| T * | ToRawArray () |
| Raw pointer to the backing N-element array. | |
| std::string | ToString () const |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Vector< T, N > &v) |
Fixed-size numeric vector with the standard component-wise algebra. Vector2D/3D/4D wrap this for the common dimensions used engine-wide.
Definition at line 31 of file Vector.hpp.
|
inlineconstexprnoexcept |
Definition at line 34 of file Vector.hpp.
|
inlineconstexpr |
Definition at line 36 of file Vector.hpp.
|
inline |
Definition at line 115 of file Vector.hpp.
|
inline |
Definition at line 104 of file Vector.hpp.
|
inline |
Definition at line 125 of file Vector.hpp.
|
inline |
Definition at line 134 of file Vector.hpp.
|
inline |
Definition at line 145 of file Vector.hpp.
|
inline |
Definition at line 162 of file Vector.hpp.
|
inline |
Definition at line 84 of file Vector.hpp.
|
inline |
Definition at line 58 of file Vector.hpp.
|
inline |
Definition at line 72 of file Vector.hpp.
|
inline |
Definition at line 65 of file Vector.hpp.
|
inline |
Definition at line 78 of file Vector.hpp.
|
inline |
Definition at line 92 of file Vector.hpp.
|
inline |
Definition at line 152 of file Vector.hpp.
|
inlinenodiscard |
Definition at line 46 of file Vector.hpp.
|
inlinenodiscard |
Definition at line 52 of file Vector.hpp.
|
inline |
Raw pointer to the backing N-element array.
Definition at line 179 of file Vector.hpp.
|
inline |
Definition at line 167 of file Vector.hpp.
|
friend |
Definition at line 183 of file Vector.hpp.