#include <Circle.h>
|
::Ice::Double | xp |
|
::Ice::Double | yp |
|
::Ice::Double | r |
|
◆ Circle() [1/8]
default constructor Defines a circle at the origin (0,0) with radius 1.
- Since
- 2017-11-02
- Author
- R. J. Mathar
◆ Circle() [2/8]
Nice::Circle::Circle |
( |
double |
xpos, |
|
|
double |
ypos, |
|
|
double |
radius |
|
) |
| |
constructor given center coordinates and radius.
- Parameters
-
xpos | x coordinate of the center |
ypos | y coordinate of the center |
radius | radius. The radius should be positive to make sense. |
- Since
- 2017-11-02
- Author
- R. J. Mathar
◆ Circle() [3/8]
constructor given center coordinates and radius.
- Parameters
-
center | two-dimensional coordinates of the center |
radius | radius. The radius should be positive to make sense. |
- Since
- 2017-11-02
- Author
- R. J. Mathar
◆ Circle() [4/8]
◆ Circle() [5/8]
◆ Circle() [6/8]
Nice::Circle::Circle |
( |
double |
xpos, |
|
|
double |
ypos, |
|
|
double |
radius |
|
) |
| |
◆ Circle() [7/8]
◆ Circle() [8/8]
◆ contains() [1/2]
Decide whether a point is inside the circle.
- Parameters
-
- Returns
- True if the circle contains the point. True if the point is inside the circle.
- Since
- 2017-11-02
- Author
- R. J. Mathar
◆ contains() [2/2]
◆ getArea() [1/2]
double Nice::Circle::getArea |
( |
| ) |
const |
Compute the area.
- Returns
- True pi times radius squared.
- Since
- 2017-11-02
- Author
- R. J. Mathar
◆ getArea() [2/2]
double Nice::Circle::getArea |
( |
| ) |
const |
◆ getCenter() [1/2]
◆ getCenter() [2/2]
Compute the area.
- Returns
- True pi times radius squared.
- Since
- 2017-11-02
- Author
- R. J. Mathar
◆ intersects() [1/2]
◆ intersects() [2/2]
Decide whether there is some overlap of this circle with another.
- Parameters
-
c | The other circle to be intersected with this. |
- Returns
- True if the two circles are closer than the sum their radii.
- Since
- 2017-11-02
- Author
- R. J. Mathar
◆ moveTo() [1/2]
◆ moveTo() [2/2]
Move the circle to a new center.
- Parameters
-
- Since
- 2017-11-02
- Author
- R. J. Mathar
◆ translate() [1/2]
Move the circle by a relative amount.
- Parameters
-
v | The vector along which the circle is moved. |
- Since
- 2017-11-02
- Author
- R. J. Mathar
◆ translate() [2/2]
The documentation for this class was generated from the following files:
- /home/nirva/insroot/include/Nice/Map/Circle.h
- TwiceAsNice/nice/src/libNice/Nice/Map/Circle.cc