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

2D float vector More...

#include <glslmath.h>

Public Member Functions

 vec2f ()
 default constructor
 
 vec2f (const vec2f &v)
 copy constructor
 
 vec2f (const vec2 &v)
 copy constructor
 
 vec2f (const float vx, const float vy)
 component-wise constructor
 
 vec2f (const float v)
 single-component constructor
 
 operator vec2 () const
 cast operator
 
const float * c_ptr () const
 const pointer to linear array
 
 operator const float * () const
 cast operator to linear array
 
vec2foperator+= (const vec2f &v)
 inplace addition
 
vec2foperator-= (const vec2f &v)
 inplace subtraction
 
vec2foperator*= (float v)
 inplace multiplication
 
vec2foperator*= (const vec2f &v)
 inplace multiplication
 
vec2f yx () 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

2D float vector


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