#include <ApiGraphics/Vec4.h>
Public Member Functions | |
Vec4 (float x, float y, float z, float w=1) | |
Vec4 (float c) | |
Vec4 (Vec3 v, float w=1) | |
Vec4 (const float *v) | |
Vec4 (const QDomElement &element) | |
float & | operator[] (int i) |
operator const float * () const | |
Vec3 | toVec3 () const |
QString | toQString () const |
QDomElement | domElement (const QString &name, QDomDocument &document) const |
void | initFromDOMElement (const QDomElement &element) |
void | homogenize () |
float | xn () const |
float | yn () const |
float | zn () const |
Vec4 & | operator+= (const Vec4 &a) |
Vec4 & | operator-= (const Vec4 &a) |
Vec4 & | operator *= (const Vec4 &a) |
Vec4 & | operator/= (const Vec4 &a) |
Vec4 & | operator *= (float s) |
Vec4 & | operator/= (float s) |
Vec3 | xyz () const |
void | glVertex () const |
Static Public Member Functions | |
static Vec4 | random () |
static Vec4 | random (float min, float max) |
static Vec4 | random (Vec4 min, Vec4 max) |
Friends | |
Vec4 | dir (const Vec4 &a, const Vec4 &b) |
Vec4 | operator- (const Vec4 &a) |
Vec4 | operator+ (const Vec4 &a, const Vec4 &b) |
Vec4 | operator- (const Vec4 &a, const Vec4 &b) |
Vec4 | operator * (const Vec4 &a, const Vec4 &b) |
Vec4 | operator/ (const Vec4 &a, const Vec4 &b) |
Vec4 | operator * (float s, const Vec4 &a) |
Vec4 | operator * (const Vec4 &a, float s) |
Vec4 | operator/ (float s, const Vec4 &a) |
Vec4 | operator/ (const Vec4 &a, float s) |
bool | operator== (const Vec4 &a, const Vec4 &b) |
bool | operator!= (const Vec4 &a, const Vec4 &b) |
bool | operator>= (const Vec4 &a, const Vec4 &b) |
bool | operator<= (const Vec4 &a, const Vec4 &b) |
bool | operator> (const Vec4 &a, const Vec4 &b) |
bool | operator< (const Vec4 &a, const Vec4 &b) |
bool | operator>= (const Vec4 &a, float b) |
bool | operator<= (const Vec4 &a, float b) |
bool | operator> (const Vec4 &a, float b) |
bool | operator< (const Vec4 &a, float b) |
Vec4 | abs (const Vec4 &a) |
Vec4 | sign (const Vec4 &a) |
Vec4 | floor (const Vec4 &a) |
Vec4 | ceil (const Vec4 &a) |
Vec4 | fract (const Vec4 &a) |
Vec4 | min (const Vec4 &a, const Vec4 &b) |
Vec4 | min (const Vec4 &a, float b) |
Vec4 | max (const Vec4 &a, const Vec4 &b) |
Vec4 | max (const Vec4 &a, float b) |
Vec4 | clamp (const Vec4 &a, const Vec4 &min, const Vec4 &max) |
Vec4 | clamp (const Vec4 &a, float min, float max) |
Vec4 | mix (const Vec4 &a, const Vec4 &b, const Vec4 &alpha) |
Vec4 | mix (const Vec4 &a, const Vec4 &b, float alpha) |
Vec4 | step (const Vec4 &e, const Vec4 &a) |
Vec4 | step (float e, const Vec4 &a) |
float | min (const Vec4 &a) |
float | max (const Vec4 &a) |
It can be used for homogeneous coordinates manipulation.