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

3D float vector More...

#include <glslmath.h>

Public Member Functions

 vec3f ()
 default constructor
 
 vec3f (const vec3f &v)
 copy constructor
 
 vec3f (const vec3 &v)
 copy constructor
 
 vec3f (const vec2f &v, const float vz=0.0f)
 copy constructor
 
 vec3f (const vec2 &v, const float vz=0.0f)
 copy constructor
 
 vec3f (const float vx, const float vy, const float vz)
 component-wise constructor
 
 vec3f (const float v)
 single-component constructor
 
 operator vec3 () const
 cast operator
 
const float * c_ptr () const
 const pointer to linear array
 
 operator const float * () const
 cast operator to linear array
 
vec3foperator+= (const vec3f &v)
 inplace addition
 
vec3foperator-= (const vec3f &v)
 inplace subtraction
 
vec3foperator*= (float v)
 inplace multiplication
 
vec3foperator*= (const vec3f &v)
 inplace multiplication
 
vec2f xy () const
 swizzeling operator
 
vec3f zyx () const
 swizzeling operator
 
vec3f bgr () 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

3D float vector


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