Public Member Functions | |
Vector4 (const Vector4 &v) | |
Vector4 (T nx, T ny, T nz=0, T nw=1) | |
bool | operator== (const Vector4 &s1) const |
operators below do not take weights into account. | |
Vector4 & | operator+= (const Vector4< T > &s1) |
Vector4 & | operator-= (const Vector4 &s1) |
Vector4 & | operator*= (T k) |
T | distance2 (const Vector4 &s1) const |
square of distance between this and a point | |
T | distance2 (const Vector4 &s1, const Vector4 &s2) const |
square of distance between this and a line from s1 to s2 | |
void | normalize () |
Vector4 & | vectorProduct (const Vector4 &s1) |
T | innerProduct (const Vector4 &s1) const |
Public Attributes | |
T | x |
T | y |
T | z |
T | w |