Fade2.5D Documentation pages v1.85
Delaunay Features
Circle2 Class Reference

Circle for visualization. More...

#include <Circle2.h>

Public Member Functions

 Circle2 (double x, double y, double sqRadius_)
 Constructor. More...
 
 Circle2 (const Point2 &center_, double sqRadius_)
 Constructor. More...
 
double getRadius ()
 Get the radius of the circle. More...
 
double getSqRadius ()
 Get the squared radius of the circle. More...
 
Point2 getCenter ()
 Get the center of the circle. More...
 

Protected Attributes

Point2 center
 
double sqRadius
 

Friends

std::ostream & operator<< (std::ostream &stream, Circle2 b)
 

Detailed Description

Circle for visualization.

See also
Visualizer2

Constructor & Destructor Documentation

◆ Circle2() [1/2]

Circle2::Circle2 ( double  x,
double  y,
double  sqRadius_ 
)

Constructor.

Parameters
xis x-coordinate of the center
yis y-coordinate of the center
sqRadius_is the squared radius of the circle
Warning
The method expects the squared radius

◆ Circle2() [2/2]

Circle2::Circle2 ( const Point2 center_,
double  sqRadius_ 
)

Constructor.

Parameters
center_center of the circle
sqRadius_squared radius of the circle
Warning
The method expects the squared radius

Member Function Documentation

◆ getCenter()

Point2 Circle2::getCenter ( )

Get the center of the circle.

Returns
a Point2 which represents the center

◆ getRadius()

double Circle2::getRadius ( )

Get the radius of the circle.

Returns
the radius

◆ getSqRadius()

double Circle2::getSqRadius ( )

Get the squared radius of the circle.

Returns
the squared radius

The documentation for this class was generated from the following file: