#include <vec4.H>
Descriptive interface | |
typedef double | value_type |
static int | dim () |
Overloaded Mathematical Operators | |
Vec4 & | operator+= (const Vec4 &v) |
Vec4 & | operator-= (const Vec4 &v) |
Vec4 & | operator *= (double s) |
Vec4 & | operator/= (double s) |
Vec4 | operator+ (const Vec4 &v) const |
Vec4 | operator- (const Vec4 &v) const |
Vec4 | operator- () const |
Vec4 | operator * (double s) const |
Vec4 | operator/ (double s) const |
double | operator * (const Vec4 &v) const |
Dot product. | |
Vec4 | operator * (double s, const Vec4 &v) |
Public Member Functions | |
Vec4 & | operator= (double s) |
Constructors | |
Vec4 (double s=0) | |
Vec4 (double x, double y, double z, double w) | |
template<typename V> | |
Vec4 (const Vec3< V > &v, double w=0.0) | |
template<typename P> | |
Vec4 (const P &p, double w=1.0) | |
template<typename U> | |
Vec4 (const U v[4]) | |
Element Access Functions | |
operator double * () | |
operator const double * () const | |
Vector Property Queries | |
double | length () const |
double | length_sqrd () const |
double | length_rect () const |
Two Vector Operations | |
double | dist (const Vec4 &v) const |
double | dist_sqrd (const Vec4 &v) const |
Single Vector Operations | |
Vec4 | normalized () const |
Protected Attributes | |
double | elt [4] |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &out, const Vec4 &v) |
std::istream & | operator>> (std::istream &in, Vec4 &v) |
Vec4 | cross (const Vec4 &a, const Vec4 &b, const Vec4 &c) |
Vec3< Wvec > | proj (const Vec4 &v) |
Projects a Vec4. |
Definition at line 28 of file vec4.H.
|
|
|
Definition at line 39 of file vec4.H. Referenced by normalized(), operator *(), operator+(), operator-(), and operator/(). |
|
Definition at line 40 of file vec4.H. References elt. |
|
Definition at line 44 of file vec4.H. References elt. |
|
Definition at line 48 of file vec4.H. References elt. |
|
Definition at line 52 of file vec4.H. References elt. |
|
|
|
|
|
|
|
Definition at line 123 of file vec4.H. References elt. Referenced by normalized(), and mlib::Mat4< M, P, V, L, Q >::orthogonalized(). |
|
Definition at line 127 of file vec4.H. References elt. |
|
Definition at line 125 of file vec4.H. References elt. |
|
|
Dot product.
Definition at line 112 of file vec4.H. References elt. |
|
|
|
Definition at line 90 of file vec4.H. References elt. |
|
Definition at line 71 of file vec4.H. References elt. |
|
Definition at line 70 of file vec4.H. References elt. |
|
|
|
Definition at line 84 of file vec4.H. References elt. |
|
|
|
|
|
Definition at line 87 of file vec4.H. References elt. |
|
|
|
Definition at line 93 of file vec4.H. References elt. |
|
Definition at line 57 of file vec4.H. References elt. |
|
|
|
|
|
|
|
|
|
Projects a Vec4.
|
|
Definition at line 32 of file vec4.H. Referenced by length(), length_rect(), length_sqrd(), normalized(), operator *(), operator *=(), operator const double *(), operator double *(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), and Vec4(). |