CVB.Net 14.0
Circle Struct Reference

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.
 

Detailed Description

Class representing a circle (for the purpose of regression and other calculations).

Constructor & Destructor Documentation

◆ Circle()

Circle ( Point2Dd  center,
double  radius 
)

Create a circle.

Parameters
centercenter of the circle
radiusradius of the circle

Member Function Documentation

◆ Contains()

bool Contains ( Point2Dd  pt)

Check whether a point is inside or outside a circle.

Parameters
ptpoint to be checked
Returns
bool if pt lies inside the circle, false otherwise

◆ IsOnRadius()

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).

Parameters
ptpoint to be checked
epsilonmaximum allowable deviation
Returns
true if pt lies within epsilon length units of this circle's radius