|
SleakEngine 1.0.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 529 of file Vector.hpp.
|
inline |
Definition at line 532 of file Vector.hpp.
|
inline |
Definition at line 533 of file Vector.hpp.
|
inline |
Definition at line 586 of file Vector.hpp.
|
inline |
Definition at line 539 of file Vector.hpp.
|
inline |
Definition at line 536 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 591 of file Vector.hpp.
|
inline |
Definition at line 595 of file Vector.hpp.
|
inline |
Definition at line 604 of file Vector.hpp.
|
inline |
Definition at line 618 of file Vector.hpp.
|
inline |
Definition at line 576 of file Vector.hpp.
Definition at line 551 of file Vector.hpp.
Definition at line 559 of file Vector.hpp.
Definition at line 555 of file Vector.hpp.
Definition at line 567 of file Vector.hpp.
|
inline |
Definition at line 580 of file Vector.hpp.
|
inline |
Definition at line 611 of file Vector.hpp.
|
inline |
Definition at line 546 of file Vector.hpp.
|
inline |
Definition at line 545 of file Vector.hpp.
|
inline |
Definition at line 542 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 638 of file Vector.hpp.
|
inline |
Definition at line 627 of file Vector.hpp.
|
inline |
Definition at line 631 of file Vector.hpp.
|
friend |
Definition at line 622 of file Vector.hpp.