glVertex  5.5.2
Public Member Functions | Public Attributes | List of all members
vec4f Class Reference

4D float vector More...

#include <glslmath.h>

Public Member Functions

 vec4f ()
 default constructor
 
 vec4f (const vec4f &v)
 copy constructor
 
 vec4f (const vec4 &v)
 copy constructor
 
 vec4f (const vec3f &v, const float vw=1.0f)
 copy constructor
 
 vec4f (const vec3 &v, const float vw=1.0f)
 copy constructor
 
 vec4f (const vec2f &v, const float vz=0.0f, const float vw=1.0f)
 copy constructor
 
 vec4f (const vec2 &v, const float vz=0.0f, const float vw=1.0f)
 copy constructor
 
 vec4f (const vec2f &xy, const vec2f &zw)
 copy constructor
 
 vec4f (const vec2 &xy, const vec2 &zw)
 copy constructor
 
 vec4f (const float vx, const float vy, const float vz, const float vw=1.0f)
 component-wise constructor
 
 vec4f (const float v, const float vw=1.0f)
 single-component constructor
 
 operator vec4 () const
 cast operator
 
 operator vec3f () const
 cast operator with homogenization
 
const float * c_ptr () const
 const pointer to linear array
 
 operator const float * () const
 cast operator to linear array
 
vec4foperator+= (const vec4f &v)
 inplace addition
 
vec4foperator-= (const vec4f &v)
 inplace subtraction
 
vec4foperator*= (float v)
 inplace multiplication
 
vec4foperator*= (const vec4f &v)
 inplace multiplication
 
vec2f xy () const
 swizzeling operator
 
vec2f zw () const
 swizzeling operator
 
vec3f xyz () const
 swizzeling operator
 
vec3f rgb () const
 swizzeling operator
 
vec4f wzyx () const
 swizzeling operator
 
vec4f bgra () const
 swizzeling operator
 
 operator std::string ()
 string cast operator
 
std::string to_string (std::string delimiter=", ", int space=0)
 conversion to string
 

Public Attributes

union {
}; 
 vector components
 

Detailed Description

4D float vector


The documentation for this class was generated from the following file: