Public Types | |
enum | Coords { X = 1, Y = 2, Z = 3, W = 4, Coords3D = 5 } |
Public Member Functions | |
Vector4 () | |
Vector4 (Real xc, Real yc, Real zc, Real wc=Real(1)) | |
Vector4 (const Vector3 &v, Real w=Real(1)) | |
Vector4 (const Vector4 &v) | |
~Vector4 () | |
void | setZero () throw () |
Real & | e (Int i) throw () |
const Real & | e (Int i) const throw () |
Real & | operator[] (Int i) throw () |
const Real & | operator[] (Int i) const throw () |
Real & | at (Int i) throw (std::out_of_range) |
const Real & | at (Int i) const throw (std::out_of_range) |
Vector4 & | operator= (const Vector4 &src) throw () |
bool | operator== (const Vector4 &v) const throw () |
bool | equals (const Vector4 &v) const throw () |
Real | norm () const throw () |
Real | magnitude () const throw () |
Real | length () const throw () |
Vector4 & | negate () throw () |
Vector4 & | operator+= (const Vector4 &v2) throw () |
Vector4 & | operator-= (const Vector4 &v2) throw () |
Vector4 & | operator *= (const Real &s) throw () |
Vector4 & | operator/= (const Real &s) |
Real * | c_array () |
Vector3 | toVector3 () const |
Public Attributes | |
Real | x |
Real | y |
Real | z |
Real | w |
|
|
|
Definition at line 42 of file Vector4. References base::Real. |
|
Definition at line 43 of file Vector4. References base::Real. |
|
Definition at line 44 of file Vector4. References base::Real, base::Vector3::x, base::Vector3::y, and base::Vector3::z. |
|
Definition at line 45 of file Vector4. References operator=(). |
|
|
|
Definition at line 73 of file Vector4. References Exception, base::Int, and base::Real. |
|
Definition at line 65 of file Vector4. References Exception, base::Int, and base::Real. |
|
Definition at line 132 of file Vector4. References base::Real. |
|
Definition at line 56 of file Vector4. References base::Int, and base::Real. |
|
Definition at line 53 of file Vector4. References base::Int, and base::Real. |
|
Definition at line 99 of file Vector4. References base::equals(), base::Vector3::x, base::Vector3::y, and base::Vector3::z. |
|
Definition at line 113 of file Vector4. References magnitude(), and base::Real. |
|
Definition at line 110 of file Vector4. References norm(), base::Real, and base::sqrt(). Referenced by length(). |
|
Definition at line 117 of file Vector4. Referenced by base::operator-(). |
|
Definition at line 107 of file Vector4. References base::Real. Referenced by magnitude(). |
|
Definition at line 126 of file Vector4. References base::Real. |
|
|
|
|
|
Definition at line 129 of file Vector4. References base::Real. |
|
Definition at line 82 of file Vector4. Referenced by Vector4(). |
|
Definition at line 91 of file Vector4. References base::Vector3::x, base::Vector3::y, and base::Vector3::z. |
|
Definition at line 62 of file Vector4. References base::Int, and base::Real. |
|
Definition at line 59 of file Vector4. References base::Int, and base::Real. |
|
Definition at line 50 of file Vector4. References base::Real. |
|
Definition at line 136 of file Vector4. Referenced by robot::operator<<(). |
|
Definition at line 138 of file Vector4. Referenced by base::operator<<(), and base::Quat4::rotatePoint(). |
|
Definition at line 138 of file Vector4. Referenced by base::operator *(), base::operator<<(), base::Quat4::rotate(), and base::Quat4::rotatePoint(). |
|
Definition at line 138 of file Vector4. Referenced by base::operator *(), base::operator<<(), base::Quat4::rotate(), and base::Quat4::rotatePoint(). |
|
Definition at line 138 of file Vector4. Referenced by base::operator *(), base::operator<<(), base::Quat4::rotate(), and base::Quat4::rotatePoint(). |