![]() |
The small3d library
Tiny C++ 3D game development library for Win/Linux
|
4 component vector More...
#include <Math.hpp>
Public Member Functions | |
| Vec4 (float x, float y, float z, float w) | |
| Vec4 (const Vec3 &vec3, float w) | |
| Vec4 & | operator+= (const Vec4 &other) |
| Vec4 | operator+ (const Vec4 &other) |
| Vec4 | operator- (const Vec4 &other) |
| Vec4 & | operator*= (const float v) |
| Vec4 | operator* (const float v) const |
| Vec4 | operator* (const Vec4 &other) const |
| Vec4 & | operator/= (const float div) |
| float & | operator[] (int idx) |
| Vec4 & | operator= (const Vec4 &other) |
| template<class Archive > | |
| void | serialize (Archive &archive) |
Public Attributes | |
| float | x = 0.0f |
| float | y = 0.0f |
| float | z = 0.0f |
| float | w = 0.0f |
4 component vector