#include <base.h>
Inheritance diagram for fgl::FGCircle:


Public Member Functions | |
| FGCircle () | |
| FGCircle (int xpos, int ypos, int radius) | |
| FGCircle (const FGPoint point, int radius) | |
| bool | isValid (void) const |
| bool | isNull (void) const |
| bool | isEmpty (void) const |
| bool | contains (double xc, double yc) const |
Public Attributes | |
| FGCOORD | r |
|
|
Constructs an invalid rectangle. |
|
||||||||||||||||
|
Constructs a circle with the top, left corner and width and height. |
|
||||||||||||
|
|
|
||||||||||||
|
Returns TRUE if the point x, y is inside this circle, otherwise returns FALSE. If proper is TRUE, this function returns TRUE only if the point is entirely inside (not on the edge). |
|
|
Returns TRUE if the circle is empty; otherwise returns FALSE. An empty circle has a left() > right() or top() > bottom().
An empty circle is not valid.
|
|
|
Returns TRUE if the circle is a null circle; otherwise returns FALSE. A null rectangle has both the width and the height set to 0, that is right() == left() - 1 and bottom() == top() - 1. Note that if right() == left() and bottom() == top(), then the circle has width 1 and height 1. A null circle is also empty. A null circle is not valid.
Reimplemented from fgl::FGPoint. |
|
|
Returns TRUE if the circle is valid; otherwise returns FALSE. A valid circle has a left() <= right() and top() <= bottom(). Note that non-trivial operations like intersections are not defined for invalid circles.
|
1.4.0