Vector4D.hpp
Go to the documentation of this file.
433 // To siplify the writing of the code ==> this permit to have the same name with the glsl language...
float length() const
Return the length of the vector.
Definition: Vector4D.hpp:174
Vector4D< T > operator/(const T &_val)
Inversely scale the vector.
Definition: Vector4D.hpp:143
void setValue(const T &_xxx, const T &_yyy, const T &_zzz, const T &_www)
Set Value on the vector.
Definition: Vector4D.hpp:399
bool operator==(const Vector4D< T > &_obj) const
Equality compare operator with an other object.
Definition: Vector4D.hpp:354
float dot(const Vector4D< T > &_obj) const
Return the dot product.
Definition: Vector4D.hpp:157
Vector4D< T > & normalize()
Normalize this vector x^2 + y^2 + z^2 + w^2 = 1.
Definition: Vector4D.hpp:207
basic namespace of the etk library. (it might contain all the etk fuctions/class/structures without m...
Definition: Archive.hpp:16
bool operator!=(const Vector4D< T > &_obj) const
In-Equality compare operator with an other object.
Definition: Vector4D.hpp:366
Vector4D< T > operator+(const Vector4D< T > &_obj)
Add a vector to this one.
Definition: Vector4D.hpp:71
Vector4D< T > & operator+=(const Vector4D< T > &_obj)
Add a vector to this one.
Definition: Vector4D.hpp:59
void setMax(const Vector4D< T > &_obj)
Set each element to the max of the current values and the values of another Vector.
Definition: Vector4D.hpp:376
Vector4D< T > & operator*=(const Vector4D< T > &_obj)
Multiply this vector by the other.
Definition: Vector4D.hpp:232
bool isZero() const
Check if the vector is equal to (0,0,0,0)
Definition: Vector4D.hpp:416
Vector4D()
No initialization constructor (faster ...)
Definition: Vector4D.hpp:32
Vector4D< T > operator-(const Vector4D< T > &_obj)
Subtract a vector from this one.
Definition: Vector4D.hpp:94
Vector4D< T > & operator*=(const T &_val)
Scale the vector.
Definition: Vector4D.hpp:105
Vector4D< T > absolute() const
Return a vector will the absolute values of each element.
Definition: Vector4D.hpp:221
Vector4D< T > & operator-=(const Vector4D< T > &_obj)
Subtract a vector from this one.
Definition: Vector4D.hpp:82
Vector4D< T > operator*(const T &_val)
Scale the vector.
Definition: Vector4D.hpp:117
float length2() const
Return the squared length of the vector.
Definition: Vector4D.hpp:167
Vector4D< T > normalized() const
Return a normalized version of this vector.
Definition: Vector4D.hpp:214
Vector4D(const T &_xxx, const T &_yyy, const T &_zzz, const T &_www)
Constructor from scalars.
Definition: Vector4D.hpp:48
float distance(const Vector4D< T > &_obj) const
Return the distance between the ends of this and another vector This is symantically treating the vec...
Definition: Vector4D.hpp:200
void setMin(const Vector4D< T > &_obj)
Set each element to the min of the current values and the values of another Vector.
Definition: Vector4D.hpp:386
Vector4D< T > & operator/=(const T &_val)
Inversely scale the vector.
Definition: Vector4D.hpp:128
float distance2(const Vector4D< T > &_obj) const
Return the distance squared between the ends of this and another vector This is symantically treating...
Definition: Vector4D.hpp:191
Vector4D< T > operator*(const Vector4D< T > &_obj)
Multiply this vector by the other.
Definition: Vector4D.hpp:244