#include <PfieldDatatypes.h>
Public Member Functions | |
| PfVec () | |
| Constructor. | |
| PfVec (double x, double y) | |
| Constructor. | |
| PfVec (const PfVec &p) | |
| Copy-Constructor. | |
| double | distanceTo (const PfVec &v) const |
| Distance to another vector. | |
| void | rotate (double angle) |
| Rotates around an angle. | |
| void | normalize () |
| Normalizes the vector to length==1. | |
| double | length () const |
| Returns the length of the vector. | |
| double | squareLength () const |
| Returns the squared length of the vector. | |
| void | operator= (const PfVec &v) |
| Assigns another vector. | |
| PfVec | operator+ (const PfVec &v) const |
| Adds another vector. | |
| PfVec | operator- (const PfVec &v) const |
| Substracts another vector. | |
| void | operator *= (const double &n) |
| Scales the vector. | |
| PfVec | operator * (const double &n) const |
| Returns a scaled vector. | |
| void | operator+= (const PfVec &p) |
| Adds another vector. | |
| void | operator-= (const PfVec &p) |
| Substracts another vector. | |
| double | scalarProduct (const PfVec &p) const |
| Multiplies with another vector. | |
| double | getAngle () const |
| Computes the angle of the vector. | |
Public Attributes | |
| double | x |
| The x-component. | |
| double | y |
| The y-component. | |
Definition at line 25 of file PfieldDatatypes.h.
|
|
Constructor.
Definition at line 34 of file PfieldDatatypes.h. |
|
||||||||||||
|
Constructor.
Definition at line 44 of file PfieldDatatypes.h. |
|
|
Copy-Constructor.
Definition at line 53 of file PfieldDatatypes.h. |
|
|
Distance to another vector.
Definition at line 62 of file PfieldDatatypes.h. Referenced by computeChargeForPointfield(), computeChargeForSectorfield(), PotentialfieldAStarNode::computeCurrentParameters(), computeGradientForSectorfield(), NoGeometry::distanceTo(), Polygon::distanceTo(), Line::distanceTo(), Circle::distanceTo(), FutureWorldModelGenerator::executeSingleTransformation(), pointPerpendicularToLine(), and RelativeFormation::updateGeometry(). |
|
|
|
Normalizes the vector to length==1.
Definition at line 82 of file PfieldDatatypes.h. References length(). Referenced by computeGradientForPointfield(), computeGradientForSectorfield(), computeGradientForShapefield(), Motionfield::correctMotionVector(), Circle::distanceTo(), PotentialfieldComposition::execute(), Motionfield::execute(), FutureWorldModelGenerator::executeSingleTransformation(), Potentialfield::getDirectionArray(), Motionfield::getFieldVecFromAStarSearch(), and Motionfield::pathPlanningStillNeeded(). |
Here is the call graph for this function:

|
|
Returns the length of the vector.
Definition at line 95 of file PfieldDatatypes.h. Referenced by computeGradientForPointfield(), computeGradientForSectorfield(), Motionfield::correctMotionVector(), Motionfield::execute(), FutureWorldModelGenerator::executeSingleTransformation(), Potentialfield::getDirectionArray(), FutureWorldModelGenerator::getMaxTranslationForObject(), RandomMotionGenerator::getMotionVector(), intersectGeometricObjects(), normalize(), and Polygon::pointInside(). |
|
|
Returns the squared length of the vector.
Definition at line 103 of file PfieldDatatypes.h. |
|
|
Assigns another vector.
Definition at line 111 of file PfieldDatatypes.h. |
|
|
Adds another vector.
Definition at line 121 of file PfieldDatatypes.h. |
|
|
Substracts another vector.
Definition at line 133 of file PfieldDatatypes.h. |
|
|
Scales the vector.
Definition at line 144 of file PfieldDatatypes.h. |
|
|
Returns a scaled vector.
Definition at line 154 of file PfieldDatatypes.h. |
|
|
Adds another vector.
Definition at line 164 of file PfieldDatatypes.h. |
|
|
Substracts another vector.
Definition at line 173 of file PfieldDatatypes.h. |
|
|
Multiplies with another vector.
Definition at line 183 of file PfieldDatatypes.h. Referenced by intersectLineAndCircle(), Polygon::pointInside(), and pointPerpendicularToLine(). |
|
|
Computes the angle of the vector.
Definition at line 191 of file PfieldDatatypes.h. Referenced by FutureWorldModelGenerator::executeSingleTransformation(), and PfPose::getAngleTo(). |
|
|
The x-component.
Definition at line 29 of file PfieldDatatypes.h. Referenced by ccw(), PotentialfieldAStarNode::computeHeuristicBetween(), distanceTo(), AStarSearch< PotentialfieldAStarNode, PotentialfieldAStarParameterSet, double >::draw(), Motionfield::execute(), GTStandardConverter::execute(), GT2004PotentialFieldBasicBehaviorOffensiveSupport::execute(), GT2004PotentialFieldBasicBehaviorSupport::execute(), GT2004PotentialFieldBasicBehaviorGoToPose::execute(), FutureWorldModelGenerator::executeSingleTransformation(), Potentialfield::getDirectionArray(), Motionfield::getFieldVecFromAStarSearch(), Potentialfield::getValueArray(), PfPose::init(), intersectCircleAndCircle(), intersectLineAndLine(), Motionfield::Motionfield(), operator+(), operator+=(), operator-(), operator-=(), operator=(), Parser::parseGeometricObject(), Parser::parseInstance(), Parser::parseTransformation(), PfPose::PfPose(), pointPerpendicularToLine(), scalarProduct(), GTStandardConverter::setData(), and theta(). |
|
|
The y-component.
Definition at line 31 of file PfieldDatatypes.h. Referenced by ccw(), PotentialfieldAStarNode::computeHeuristicBetween(), distanceTo(), AStarSearch< PotentialfieldAStarNode, PotentialfieldAStarParameterSet, double >::draw(), Motionfield::execute(), GTStandardConverter::execute(), GT2004PotentialFieldBasicBehaviorOffensiveSupport::execute(), GT2004PotentialFieldBasicBehaviorSupport::execute(), GT2004PotentialFieldBasicBehaviorGoToPose::execute(), FutureWorldModelGenerator::executeSingleTransformation(), Potentialfield::getDirectionArray(), Motionfield::getFieldVecFromAStarSearch(), Potentialfield::getValueArray(), PfPose::init(), intersectCircleAndCircle(), intersectLineAndLine(), Motionfield::Motionfield(), operator+(), operator+=(), operator-(), operator-=(), operator=(), Parser::parseGeometricObject(), Parser::parseInstance(), Parser::parseTransformation(), PfPose::PfPose(), pointPerpendicularToLine(), scalarProduct(), GTStandardConverter::setData(), and theta(). |
1.3.6