Carpenter Engine
A C++ game engine with a build once run anywhere solution
|
A 3D vector struct with overloaded operators. More...
#include <Utils.hpp>
Public Member Functions | |
Vec3f | operator+ (const Vec3f &rhs) |
Adds two Vec3f objects. | |
Vec3f | operator* (const float &rhs) |
Compute scalar multiplication. | |
Vec3f | operator* (const Vec3f &rhs) |
Computes Multiplication in parallel. | |
float | lengthSquared () |
Returns the length of the vector. | |
bool | operator== (const Vec3f &rhs) |
Public Attributes | |
float | x |
float | y |
float | z |
A 3D vector struct with overloaded operators.