#include <Vector2.h>
Collaboration diagram for Vector2< V >:
Public Member Functions | |
Vector2 () | |
Default constructor. | |
Vector2 (V x, V y) | |
Default constructor. | |
Vector2< V > & | operator= (const Vector2< V > &other) |
Assignment operator. | |
Vector2 (const Vector2< V > &other) | |
Copy constructor. | |
Vector2< V > & | operator+= (const Vector2< V > &other) |
Addition of another vector to this one. | |
Vector2< V > & | operator-= (const Vector2< V > &other) |
Substraction of this vector from another one. | |
Vector2< V > & | operator *= (const V &factor) |
Multiplication of this vector by a factor. | |
Vector2< V > & | operator/= (const V &factor) |
Division of this vector by a factor. | |
Vector2< V > | operator+ (const Vector2< V > &other) const |
Addition of another vector to this one. | |
Vector2< V > | operator- (const Vector2< V > &other) const |
Subtraction of another vector to this one. | |
Vector2< V > | operator- () const |
Negation of this vector. | |
V | operator * (const Vector2< V > &other) const |
Inner product of this vector and another one. | |
Vector2< V > | operator * (const V &factor) const |
Multiplication of this vector by a factor. | |
Vector2< V > | operator/ (const V &factor) const |
Division of this vector by a factor. | |
bool | operator== (const Vector2< V > &other) const |
Comparison of another vector with this one. | |
bool | operator!= (const Vector2< V > &other) const |
Comparison of another vector with this one. | |
V | abs () const |
Calculation of the length of this vector. | |
Vector2< V > | normalize (V len) |
normalize this vector. | |
Vector2< V > | normalize () |
normalize this vector. | |
Vector2< V > | transpose () |
transpose this vector. | |
Vector2< V > | rotateLeft () |
the vector is rotated left by 90 degrees. | |
Vector2< V > | rotateRight () |
the vector is rotated right by 90 degrees. | |
V & | operator[] (int i) |
array-like member access. | |
double | angle () const |
Calculation of the angle of this vector. | |
Public Attributes | |
V | x |
The vector values. | |
V | y |
The vector values. |
Definition at line 16 of file Vector2.h.
|
Default constructor.
|
|
Default constructor.
|
|
Copy constructor.
|
|
Assignment operator.
Reimplemented in SeenBallPosition, and GT2004BallSpecialist::BallPoint. |
|
Addition of another vector to this one.
|
|
Substraction of this vector from another one.
|
|
Multiplication of this vector by a factor.
|
|
Division of this vector by a factor.
|
|
Addition of another vector to this one.
|
|
Subtraction of another vector to this one.
|
|
Negation of this vector.
|
|
Inner product of this vector and another one.
|
|
Multiplication of this vector by a factor.
|
|
Division of this vector by a factor.
|
|
Comparison of another vector with this one.
|
|
Comparison of another vector with this one.
|
|
|
normalize this vector.
Definition at line 160 of file Vector2.h. Referenced by GT2004EdgeSpecialist::addCandidate(), GT2004ImageProcessor::execute(), GT2004BasicBehaviorGoToBallWithoutTurning::execute(), GT2004BasicBehaviorGoToBall::execute(), Geometry::getDistanceToLine(), RasterSpecialist::getDistanceToLine(), GT2004BallLocator::handleSeenBall(), GT2004HeadControl::setJoints(), OpenChallengeSymbols::update(), FieldDimensions::vectorToBorder(), and FieldDimensions::vectorToBorderIncludingGoals(). |
|
normalize this vector.
|
|
transpose this vector.
|
|
the vector is rotated left by 90 degrees.
Definition at line 188 of file Vector2.h. Referenced by RDefaultStrategy::preScan(), and OpenChallengeSymbols::update(). |
|
the vector is rotated right by 90 degrees.
Definition at line 198 of file Vector2.h. Referenced by OpenChallengeSymbols::update(). |
|
array-like member access.
|
|
Calculation of the angle of this vector.
Definition at line 216 of file Vector2.h. Referenced by GT2004ObstaclesLocator::addPSDPercept(), GT2004ImageProcessor::calcEdgeAngle(), GT2004HeadControl::calculateClosestLandmark(), ChallengeSpecialVision::executeReset(), Kinematics::getAbsoluteRobotVertices(), BallPercept::getAngle(), BallPercept::getAngleBearingBased(), BallPercept::getAngleIntrinsicBased(), BallPercept::getAngleSizeBased(), Kinematics::getRobotTransformation(), GT2004ImageProcessor::scan(), and OpenChallengeSymbols::update(). |
|
|