|
glVertex
5.5.2
|
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 | |
| vec2f & | operator+= (const vec2f &v) |
| inplace addition | |
| vec2f & | operator-= (const vec2f &v) |
| inplace subtraction | |
| vec2f & | operator*= (float v) |
| inplace multiplication | |
| vec2f & | operator*= (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 | |
2D float vector
1.8.17