General purpose float quad, uses include representation of colour coordinates.
General purpose float quad, uses include representation of colour coordinates. No support yet added for float * Vec4 - is it necessary? Need to define a non-member non-friend operator* etc. Vec4 * float is okay
Vec4(float x, float y, float z, float w)
float _v[4]
bool operator == (const Vec4& v) const
inline float* ptr()
inline const float* ptr() const
inline void set( float x, float y, float z, float w)
inline float& operator [] (int i)
inline float operator [] (int i) const
inline float& x()
inline float& y()
inline float& z()
inline float& w()
inline float x() const
inline float y() const
inline float z() const
inline float w() const
inline float operator * (const Vec4& rhs) const
inline Vec4 operator * (const float& rhs) const
inline Vec4& operator *= (const float& rhs)
inline Vec4 operator / (const float& rhs) const
inline Vec4& operator /= (const float& rhs)
inline Vec4 operator + (const Vec4& rhs) const
inline Vec4& operator += (const Vec4& rhs)
inline Vec4 operator - (const Vec4& rhs) const
inline Vec4& operator -= (const Vec4& rhs)
inline Vec4 operator - () const
inline float length( void ) const
inline float length2( void ) const
inline float normalize()
inline friend ostream& operator << (ostream& output, const Vec4& vec)
Alphabetic index HTML hierarchy of classes or Java