|
SleakEngine 0.1.0
C++23 multi-backend game engine
|
#include <Vector.hpp>
Public Member Functions | |
| Vector4D () | |
| Vector4D (float x, float y, float z, float w) | |
| float | Dot (const Vector4D &other) const |
| float | GetW () const |
| float | GetX () const |
| float | GetY () const |
| float | GetZ () const |
| float | Magnitude () const |
| void | Normalize () |
| Vector4D | Normalized () const |
| bool | operator!= (const Vector4D &other) const |
| Vector4D | operator* (float scalar) const |
| Vector4D | operator+ (const Vector4D &other) const |
| Vector4D & | operator+= (const Vector4D &other) |
| Vector4D | operator- (const Vector4D &other) const |
| Vector4D & | operator-= (const Vector4D &other) |
| Vector4D | operator/ (float scalar) const |
| bool | operator== (const Vector4D &other) const |
| void | Set (float x, float y, float z, float w) |
| void | SetW (float val) |
| void | SetX (float val) |
| void | SetY (float val) |
| void | SetZ (float val) |
| float * | ToArray () |
| std::string | ToString () const |
| std::string | ToString (uint8_t precision) const |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Vector4D &vec) |
Four-component float vector for homogeneous coordinates, RGBA values, and shader constant payloads.
Wraps Vector<float, 4> with the same accessor pattern as Vector2D and Vector3D, adding a W component. Reach for it when a value has to survive a Matrix4 transform with its translation intact (w = 1 for points, w = 0 for directions), or when you are packing four floats for the GPU.
Definition at line 530 of file Vector.hpp.
|
inline |
Definition at line 533 of file Vector.hpp.
|
inline |
Definition at line 534 of file Vector.hpp.
|
inline |
Definition at line 587 of file Vector.hpp.
|
inline |
Definition at line 540 of file Vector.hpp.
|
inline |
Definition at line 537 of file Vector.hpp.
|
inline |
Definition at line 538 of file Vector.hpp.
|
inline |
Definition at line 539 of file Vector.hpp.
|
inline |
Definition at line 592 of file Vector.hpp.
|
inline |
Definition at line 596 of file Vector.hpp.
|
inline |
Definition at line 605 of file Vector.hpp.
|
inline |
Definition at line 619 of file Vector.hpp.
|
inline |
Definition at line 577 of file Vector.hpp.
Definition at line 552 of file Vector.hpp.
Definition at line 560 of file Vector.hpp.
Definition at line 556 of file Vector.hpp.
Definition at line 568 of file Vector.hpp.
|
inline |
Definition at line 581 of file Vector.hpp.
|
inline |
Definition at line 612 of file Vector.hpp.
|
inline |
Definition at line 547 of file Vector.hpp.
|
inline |
Definition at line 546 of file Vector.hpp.
|
inline |
Definition at line 543 of file Vector.hpp.
|
inline |
Definition at line 544 of file Vector.hpp.
|
inline |
Definition at line 545 of file Vector.hpp.
|
inline |
Definition at line 639 of file Vector.hpp.
|
inline |
Definition at line 628 of file Vector.hpp.
|
inline |
Definition at line 632 of file Vector.hpp.
|
friend |
Definition at line 623 of file Vector.hpp.