Class representing a circle (for the purpose of regression and other calculations). More...
Public Member Functions | |
Circle (Point2Dd center, double radius) | |
Create a circle. More... | |
bool | Contains (Point2Dd pt) |
Check whether a point is inside or outside a circle. More... | |
bool | IsOnRadius (Point2Dd pt, double epsilon) |
Check whether a point is on the radius of a circle (or at least within a small epsilon thereof). More... | |
Properties | |
double | Radius [get, set] |
Radius of the circle. | |
Point2Dd | Center [get, set] |
Center of the circle. | |
Class representing a circle (for the purpose of regression and other calculations).
Create a circle.
center | center of the circle |
radius | radius of the circle |
bool Contains | ( | Point2Dd | pt | ) |
Check whether a point is inside or outside a circle.
pt | point to be checked |
bool IsOnRadius | ( | Point2Dd | pt, |
double | epsilon | ||
) |
Check whether a point is on the radius of a circle (or at least within a small epsilon thereof).
pt | point to be checked |
epsilon | maximum allowable deviation |