geirs2Panic
Richard J. Mathar
Fits header keyword batch editor
|
A circle represented by center point coordinate and radius. More...
#include <Circle2D.h>
Public Member Functions | |
Circle2D (double x, double y, double r) | |
Circle2D (const Point2D ctr, double r) | |
Circle2D () | |
bool | overlap (const Circle2D &oth) const |
![]() | |
Point2D (double x, double y) | |
Point2D (const double xandy[2]) | |
Point2D () | |
Point2D | to (const Point2D &oth) const |
Point2D | plus (const Point2D &oth) const |
Add this point (as a vector) to another point. More... | |
Point2D | turn90 () const |
Point2D | apply (const RotTrans2D &rt) const |
double | dist (const Point2D &oth) const |
double | len () const |
double | dotprod (const Point2D &oth) const |
Point2D & | operator-= (const Point2D &rhs) |
Subtract another point, interpreting both points as vectors. More... | |
Point2D & | operator+= (const Point2D &rhs) |
Add another point, interpreting both points as vectors. More... | |
Public Attributes | |
double | rad |
The radius. More... | |
![]() | |
double | coord [2] |
The two Cartesian coordinates x and y of the point. More... | |
A circle represented by center point coordinate and radius.
Circle2D::Circle2D | ( | double | x, |
double | y, | ||
double | r | ||
) |
Create a circle given its Cartesian coordinates of the center and radius.
x | The x coordinate of the center. |
y | The y coordinat of the centere |
r | The radius. |
Circle2D::Circle2D | ( | const Point2D | ctr, |
double | r | ||
) |
Create a circle given the mid point and the radius.
ctr | The center point of the cricle. |
r | The radius of the circle. |
Circle2D::Circle2D | ( | ) |
Create a circle of zero radius at the origin of coordinates.
bool Circle2D::overlap | ( | const Circle2D & | oth | ) | const |
Check whether this circle overlaps with another one.
oth | The companion circle which may intersect this one. |
double Circle2D::rad |
The radius.