|
| Vec3 () |
| default ctor use default and set to (0.0f,0.0f,0.0f) as attributes are initialised More...
|
|
| Vec3 (const Vec3 &_v)=default |
| copy ctor we have POD data so let the compiler do the work! More...
|
|
| Vec3 (Real _x, Real _y, Real _z) noexcept |
| initialise the constructor from 3 floats More...
|
|
void | set (Real _x, Real _y, Real _z) noexcept |
| sets the Vec3 component from 3 values More...
|
|
void | set (const Vec3 &_v) noexcept |
| set from another Vec3 More...
|
|
void | set (const Vec4 &_v) noexcept |
| set from another Vec4 ( you may need to convert somtimes) More...
|
|
Real | dot (const Vec3 &_b) const noexcept |
| return this dotted with _b More...
|
|
void | null () noexcept |
| clears the Vec3 to 0,0,0 More...
|
|
Real & | operator[] (size_t &_i) noexcept |
| [] index operator to access the index component of the Vec3 More...
|
|
const Real & | operator[] (size_t &_i) const noexcept |
| [] index operator to access the index component of the Vec3 More...
|
|
void | normalize () noexcept |
| Normalize the vector using
. More...
|
|
Real | inner (const Vec3 &_v) const noexcept |
| calculate the inner product of this vector and vector passed in More...
|
|
Mat3 | outer (const Vec3 &_v) const noexcept |
| compute the outer product of this vector and vector (requested by PJ) More...
|
|
Real | length () const noexcept |
| returns the length of the vector More...
|
|
Real | lengthSquared () const noexcept |
| returns the length squared of the vector (no sqrt so quicker) More...
|
|
void | operator+= (const Vec3 &_v) noexcept |
| += operator add Vec3 v to current Vec3 More...
|
|
void | operator-= (const Vec3 &_v) noexcept |
| -= operator this-=v More...
|
|
Vec3 | operator* (Real _i) const noexcept |
| this * i for each element More...
|
|
Vec3 | operator+ (const Vec3 &_v) const noexcept |
|
More...
|
|
Vec3 | operator/ (Real _v) const noexcept |
| divide Vec3 components by a scalar More...
|
|
void | operator/= (Real _v) noexcept |
| divide this Vec3 components by a scalar More...
|
|
void | operator*= (Real _v) noexcept |
| multiply this Vec3 components by a scalar More...
|
|
Vec3 | operator- (const Vec3 &_v) const noexcept |
| subtraction operator subtract vevtor-Vec3 More...
|
|
Vec3 | operator* (const Vec3 &_v) const noexcept |
|
- operator mult vevtor*Vec3
More...
|
|
Vec3 & | operator= (const Vec3 &_v)=default |
| assignment operator set the current Vec3 to rhs More...
|
|
Vec3 & | operator= (const Vec4 &_v) noexcept |
| assignment operator set the current Vec4 to rhs More...
|
|
Vec3 & | operator= (Real _v) noexcept |
| assignment operator set the current Vec3 to rhs More...
|
|
Vec3 | operator* (const Mat3 &_m) const noexcept |
| operator to multiply a vector by a matrix More...
|
|
Vec3 | operator- () const noexcept |
| negate the Vec3 components More...
|
|
bool | operator== (const Vec3 &_v) const noexcept |
| check for equality uses FCompare (from Util.h) as float values More...
|
|
bool | operator!= (const Vec3 &_v) const noexcept |
| not equal check More...
|
|
Vec3 | operator/ (const Vec3 &_v) const noexcept |
| \ operator div Vec3/Vec3 More...
|
|
void | cross (const Vec3 &_v1, const Vec3 &_v2) noexcept |
| set the Vec3 as the cross product from 2 other Vec3 More...
|
|
Vec3 | cross (const Vec3 &_b) const noexcept |
| return the cross product of this cross with b More...
|
|
void | clamp (float _min, float _max) noexcept |
| clamp the vector values between _min and _max More...
|
|
void | clamp (float _max) noexcept |
| clamp the vector values between +/-_max More...
|
|
Vec3 | reflect (const Vec3 &_n) const noexcept |
| return the vector reflected with this and N More...
|
|
Real * | openGL () noexcept |
| accesor to the m_openGL array returns the address of the 0th element More...
|
|
simple Vec3 encapsulates a 3 float object like glsl vec3 but not maths use the Vec3 class for maths and the asVec3 to return a vec3
Definition at line 51 of file Vec3.h.