Public Types | |
enum | Coords { X = 1, Y = 2, Coords2D = 3 } |
Public Member Functions | |
Vector2 () | |
Vector2 (Real xc, Real yc) | |
Vector2 (const Vector2 &v) | |
~Vector2 () | |
void | setZero () throw () |
Real & | e (Int i) throw () |
const Real & | e (Int i) const throw () |
Real & | at (Int i) throw (std::out_of_range) |
const Real & | at (Int i) const throw (std::out_of_range) |
Vector2 & | operator= (const Vector2 &src) throw () |
bool | operator== (const Vector2 &v) const throw () |
bool | equals (const Vector2 &v, Real epsilon=consts::epsilon) const throw () |
Real | magnitude () const throw () |
Real | length () const throw () |
Vector2 & | negate () throw () |
Vector2 & | normalize () |
Real | magNormalize () |
Real | dot (const Vector2 &p) const throw () |
Vector2 & | operator+= (const Vector2 &v2) throw () |
Vector2 & | operator-= (const Vector2 &v2) throw () |
Vector2 & | operator *= (const Real &s) throw () |
Vector2 & | operator/= (const Real &s) |
const Real * | c_array () const |
Real * | c_array () |
Public Attributes | |
Real | x |
Real | y |
|
|
|
Definition at line 43 of file Vector2. References base::Real, and y. |
|
Definition at line 44 of file Vector2. References base::Real, and y. |
|
Definition at line 45 of file Vector2. References operator=(). |
|
|
|
Definition at line 67 of file Vector2. References Exception, base::Int, base::Real, and y. |
|
Definition at line 59 of file Vector2. References Exception, base::Int, base::Real, and y. |
|
Definition at line 132 of file Vector2. References base::Real. |
|
Definition at line 131 of file Vector2. References base::Real. |
|
Definition at line 115 of file Vector2. References base::Real, and y. Referenced by base::dot(). |
|
Definition at line 56 of file Vector2. References base::Int, base::Real, and y. |
|
Definition at line 53 of file Vector2. References base::Int, base::Real, and y. |
|
Definition at line 92 of file Vector2. References base::equals(), base::Real, and y. |
|
Definition at line 103 of file Vector2. References magnitude(), and base::Real. Referenced by magNormalize(), and normalize(). |
|
Definition at line 100 of file Vector2. References base::Real, base::sqrt(), and y. Referenced by length(). |
|
Definition at line 112 of file Vector2. References length(), base::Real, and y. |
|
Definition at line 106 of file Vector2. References y. |
|
Definition at line 109 of file Vector2. References length(), base::Real, and y. |
|
Definition at line 125 of file Vector2. References base::Real, and y. |
|
Definition at line 119 of file Vector2. References y. |
|
Definition at line 122 of file Vector2. References y. |
|
Definition at line 128 of file Vector2. References base::Real, and y. |
|
Definition at line 76 of file Vector2. References y. Referenced by Vector2(). |
|
Definition at line 85 of file Vector2. References y. |
|
Definition at line 50 of file Vector2. References base::Real, and y. |
|
Definition at line 135 of file Vector2. Referenced by base::operator<<(), and robot::sim::SimulatedRobot::PlatformControlInterface::setOutput(). |
|
Definition at line 135 of file Vector2. Referenced by at(), dot(), e(), equals(), magnitude(), magNormalize(), negate(), normalize(), operator *=(), operator+=(), operator-=(), operator/=(), base::operator<<(), operator=(), operator==(), robot::sim::SimulatedRobot::PlatformControlInterface::setOutput(), setZero(), and Vector2(). |