This is a four-component vector distance. More...
Public Member Functions | |
Vec4 () | |
Vec4 (VBase4 const copy) | |
Vec4 (float fill_value) | |
Vec4 (float x, float y, float z, float w) | |
PyObject | getattr (string attr_name) |
Vec4 | operator* (float scalar) |
VBase4 | operator+ (VBase4 const other) |
Vec4 | operator+ (Vec4 const other) |
Vec4 | operator- () |
VBase4 | operator- (VBase4 const other) |
Vec4 | operator- (Vec4 const other) |
Vec4 | operator/ (float scalar) |
Vec4 | operator= (VBase4 const copy) |
Vec4 | operator= (float fill_value) |
Vec4 | project (VBase4 const onto) |
Returns a new vector representing the projection of this vector onto another one. | |
pythonRepr (ostream out, string class_name) | |
int | setattr (PyObject self, string attr_name, PyObject assign) |
Static Public Member Functions | |
static TypeHandle | getClassType () |
static Vec4 const | unitW () |
Returns a unit W vector. | |
static Vec4 const | unitX () |
Returns a unit X vector. | |
static Vec4 const | unitY () |
Returns a unit Y vector. | |
static Vec4 const | unitZ () |
Returns a unit Z vector. | |
static Vec4 const | zero () |
Returns a zero-length vector. |
This is a four-component vector distance.
Vec4 | ( | ) |
Vec4 | ( | float | fill_value | ) |
Vec4 | ( | float | x, |
float | y, | ||
float | z, | ||
float | w | ||
) |
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from VBase4.
Returns a new vector representing the projection of this vector onto another one.
The resulting vector will be a scalar multiple of onto.
Reimplemented from VBase4.
pythonRepr | ( | ostream | out, |
string | class_name | ||
) |
Reimplemented from VBase4.