#include <PfieldGeometry.h>
Inheritance diagram for Circle:
Public Member Functions | |
GeometryType | getType () const |
Returns the type of a geometric object. | |
PfieldGeometricObject * | clone () const |
Clones a circle. | |
double | distanceTo (const PfPose &base, const PfVec &pos, PfVec &contact) const |
Computes the distance from the border of the object to a given point. | |
virtual void | initRadiusOfCollisionCircle () |
Computes value of the radiusOfCollisionCircle variable. | |
PfieldGeometricObject * | getAbs (const PfPose &base) const |
Returns a geometric object with absolute coordinates. | |
void | setAbsoluteFromOther (const PfPose &base, PfieldGeometricObject *other) |
Computes absolute coordinates from a base pose and another, relative polygon. | |
virtual void | getPoints (std::vector< PfVec > &points) |
Returns all points of the object. | |
Public Attributes | |
double | radius |
The radius of the circle. |
Definition at line 290 of file PfieldGeometry.h.
|
Returns the type of a geometric object.
Implements PfieldGeometricObject. Definition at line 299 of file PfieldGeometry.h. References CIRCLE, and GeometryType. |
|
Clones a circle.
Implements PfieldGeometricObject. Definition at line 373 of file PfieldGeometry.cpp. References PfieldGeometricObject::intersectable, PfieldGeometricObject::position, radius, and PfieldGeometricObject::radiusOfCollisionCircle. Referenced by getAbs(). |
|
Computes the distance from the border of the object to a given point.
Implements PfieldGeometricObject. Definition at line 336 of file PfieldGeometry.cpp. References PfVec::distanceTo(), PfVec::normalize(), and PfPose::pos. |
Here is the call graph for this function:
|
Computes value of the radiusOfCollisionCircle variable.
Implements PfieldGeometricObject. Definition at line 353 of file PfieldGeometry.cpp. Referenced by FutureWorldModelGenerator::getMaxRotationForObject(), and Parser::parseGeometricObject(). |
|
Returns a geometric object with absolute coordinates.
Implements PfieldGeometricObject. Definition at line 359 of file PfieldGeometry.cpp. References clone(), PfPose::pos, and PfieldGeometricObject::position. |
Here is the call graph for this function:
|
Computes absolute coordinates from a base pose and another, relative polygon. Use careful! The other object has to be the same type and the size! Only positions are changed, other members will be ignored!
Implements PfieldGeometricObject. Definition at line 367 of file PfieldGeometry.cpp. References PfPose::pos. |
|
Returns all points of the object.
Reimplemented from PfieldGeometricObject. Definition at line 385 of file PfieldGeometry.cpp. |
|
The radius of the circle.
Definition at line 294 of file PfieldGeometry.h. Referenced by clone(), FutureWorldModelGenerator::getMaxRotationForObject(), intersectCircleAndCircle(), and Parser::parseGeometricObject(). |