|
SleakEngine 1.0.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 30 of file Vector.hpp.
|
inlineconstexprnoexcept |
Definition at line 33 of file Vector.hpp.
|
inlineconstexpr |
Definition at line 35 of file Vector.hpp.
|
inline |
Definition at line 114 of file Vector.hpp.
|
inline |
Definition at line 103 of file Vector.hpp.
|
inline |
Definition at line 124 of file Vector.hpp.
|
inline |
Definition at line 133 of file Vector.hpp.
|
inline |
Definition at line 144 of file Vector.hpp.
|
inline |
Definition at line 161 of file Vector.hpp.
|
inline |
Definition at line 83 of file Vector.hpp.
|
inline |
Definition at line 57 of file Vector.hpp.
|
inline |
Definition at line 71 of file Vector.hpp.
|
inline |
Definition at line 64 of file Vector.hpp.
|
inline |
Definition at line 77 of file Vector.hpp.
|
inline |
Definition at line 91 of file Vector.hpp.
|
inline |
Definition at line 151 of file Vector.hpp.
|
inlinenodiscard |
Definition at line 45 of file Vector.hpp.
|
inlinenodiscard |
Definition at line 51 of file Vector.hpp.
|
inline |
Raw pointer to the backing N-element array.
Definition at line 178 of file Vector.hpp.
|
inline |
Definition at line 166 of file Vector.hpp.
|
friend |
Definition at line 182 of file Vector.hpp.