#include <Geometry.h>
Collaboration diagram for Circle:
Public Methods | |
Circle () | |
Circle (VecPosition pos, double dR) | |
void | show (ostream &os=cout) |
bool | setCircle (VecPosition pos, double dR) |
bool | setRadius (double dR) |
double | getRadius () |
bool | setCenter (VecPosition pos) |
VecPosition | getCenter () |
double | getCircumference () |
double | getArea () |
bool | isInside (VecPosition pos) |
int | getIntersectionPoints (Circle c, VecPosition *p1, VecPosition *p2) |
double | getIntersectionArea (Circle c) |
Private Attributes | |
VecPosition | m_posCenter |
double | m_dRadius |
Definition at line 219 of file Geometry.h.
|
This is the constructor of a circle which initializes a circle with a radius of zero. Definition at line 1027 of file Geometry.C. References setCircle(). |
|
This is the constructor of a circle.
Definition at line 1020 of file Geometry.C. References setCircle(). |
|
This method returns the area inside the circle.
Definition at line 1100 of file Geometry.C. References getRadius(). |
|
This method returns the center of the circle.
Definition at line 1086 of file Geometry.C. References m_posCenter. Referenced by Line::getCircleIntersectionPoints(), getIntersectionArea(), and getIntersectionPoints(). |
|
This method returns the circumference of the circle.
Definition at line 1093 of file Geometry.C. References getRadius(). |
|
This method returns the size of the intersection area of two circles.
Definition at line 1174 of file Geometry.C. References AngDeg, getCenter(), VecPosition::getDistanceTo(), getIntersectionPoints(), getRadius(), VecPosition::getVecPositionOnLineFraction(), and min(). |
|
This method returns the two possible intersection points between two circles. This method returns the number of solutions that were found.
Definition at line 1120 of file Geometry.C. References getCenter(), getRadius(), VecPosition::getX(), VecPosition::getY(), and VecPosition::setVecPosition(). Referenced by getIntersectionArea(). |
|
This method returns the radius of the circle.
Definition at line 1070 of file Geometry.C. References m_dRadius. Referenced by getArea(), Line::getCircleIntersectionPoints(), getCircumference(), getIntersectionArea(), getIntersectionPoints(), and isInside(). |
|
This method returns a boolean that indicates whether 'pos' is located inside the circle.
Definition at line 1110 of file Geometry.C. References VecPosition::getDistanceTo(), getRadius(), and m_posCenter. Referenced by WorldModel::getNrInSetInCircle(). |
|
This method sets the center of the circle.
Definition at line 1078 of file Geometry.C. References m_posCenter. Referenced by setCircle(). |
|
This method sets the values of the circle.
Definition at line 1046 of file Geometry.C. References setCenter(), and setRadius(). Referenced by Circle(). |
|
This method sets the radius of the circle.
Definition at line 1054 of file Geometry.C. References m_dRadius. Referenced by setCircle(). |
|
This method prints the circle information to the specified output stream in the following format: "c: (c_x,c_y), r: rad" where (c_x,c_y) denotes the center of the circle and rad the radius.
Definition at line 1036 of file Geometry.C. References m_dRadius, and m_posCenter. |
|
Radius of the circle Definition at line 222 of file Geometry.h. |
|
Center of the circle Definition at line 221 of file Geometry.h. Referenced by getCenter(), isInside(), setCenter(), and show(). |