Class representing a circle. More...
Public Member Functions | |
bool | contains (self, cvb.Point2D point) |
Check whether a point is inside or outside a circle. | |
bool | is_on_radius (self, cvb.Point2D point, float epsilon) |
Check whether a point is on the radius of a circle. | |
Properties | |
center = property | |
cvb.Point2D: Gets or sets the center of the circle. | |
radius = property | |
float: Gets or sets the radius of the circle. | |
Class representing a circle.
For the purpose of regression and other calculations.
Create a circle.
Default creates a 0 degree angle.
center : cvb.Point2D Center of the circle.
radius : float Radius of the circle.
bool contains | ( | self, | |
cvb.Point2D | point ) |
Check whether a point is inside or outside a circle.
point : cvb.Point2D Point to be checked.
bool True if the point is inside the circle, False otherwise.
bool is_on_radius | ( | self, | |
cvb.Point2D | point, | ||
float | epsilon ) |
Check whether a point is on the radius of a circle.
point : cvb.Point2D Point to be checked.
epsilon : float Maximum allowable deviation.
bool True if the point lies within the allowable deviation of the circle's radius, False otherwise.
|
static |
float: Gets or sets the radius of the circle.
If the radius is negative, the absolute value is used.
We use cookies to improve your experience. By using this documentation, you agree to our use of cookies.