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