#include <vector4.h>
Public Methods | |
| vec4_c () | |
| standard constructor | |
| vec4_c (const vec4_c &) | |
| copy constructor | |
| vec4_c (const vec4_t) | |
| vector from vec4_t | |
| vec4_c (float, float, float, float) | |
| vector from floats | |
| virtual | ~vec4_c () |
| destructor | |
| operator const float * () | |
| floats from vector | |
| void | set (float x, float y, float z, float w) |
| set vector coordinates | |
| void | clear () |
| clear vector | |
| float | length () |
| float | length_squared () |
| vec4_c | operator- (const vec4_t) |
| subtract vectors | |
| vec4_c | operator * (float) |
| add vectors | |
| vec4_c | operator * (const vec4_t) |
| scale by vector | |
| vec4_c | operator= (const vec4_t) |
| assignment | |
| bool | operator== (const vec4_t) |
| comparison | |
| vec4_c | ma (const vec_t s, const vec4_t vb) |
| vec4_c | ma_vec (const vec4_t s, const vec4_t vb) |
| add vectors scaled | |
| float | dot (const vec4_t v) |
| create dot product | |
Static Public Methods | |
| vec4_c | hermite (const vec4_t p1, const vec4_t t1, const vec4_t p2, const vec4_t t2, const float frac) |
| vec4_c | linear (const vec4_t p1, const vec4_t p2, const float frac) |
Protected Attributes | |
| vec4_t | vec |
| the data | |
|
||||||||||||||||||||||||
|
hermite interpolation Interpolates between two vectors using hermite interpolation.
Definition at line 218 of file m_vector4.cpp. References set_component(), and vec4_t. |
|
|
determine the length of a vector Returns the distance of this vector from the origin / the length of this vector.(|v|) Definition at line 104 of file m_vector4.cpp. |
|
|
determine the length of a vector Returns the distance of this vector from the origin / the length of this vector.(|v|^2) Definition at line 114 of file m_vector4.cpp. |
|
||||||||||||||||
|
linear interpolation Interpolates between two vectors using linear interpolation.
Definition at line 198 of file m_vector4.cpp. References _interpolate_float_linear(), set_component(), and vec4_t. Referenced by color_interpolate(). |
|
||||||||||||
|
add two vectors scaled Scales vb by s, adds it and returns the result
Definition at line 169 of file m_vector4.cpp. References vec4_c(), vec4_t, and vec_t. Referenced by landscape_c::prelight(). |
|
||||||||||||
|
Definition at line 174 of file m_vector4.cpp. |
|
||||||||||||||||||||
|
Definition at line 86 of file m_vector4.cpp. References vec. Referenced by clear(), particle_type_c::particle_type_c(), and vec4_c(). |
1.2.18