#include <geocircle.h>
Definition at line 12 of file geocircle.h.
Circle::Circle |
( |
const Coordinate & |
center, |
|
|
double |
radius |
|
) |
| |
Definition at line 7 of file geocircle.cpp.
9 throw "Invalid radius";
const double _radius
Radius of circle.
const Coordinate _center
center of cirlce
double radius() const
returns the radius of the circle.
Returns equation of the circle.
- Returns
- Equation
Definition at line 40 of file geocircle.h.
const double _radius
Radius of circle.
const Coordinate _center
center of cirlce
Give line tangent points on entity.
- Parameters
-
extPoint | First point of line tangent |
- Returns
- Vector of tangent end points
Implements Tangentable.
Definition at line 29 of file geocircle.cpp.
31 double tangentLength = sqrt(distance * distance -
_radius *
_radius);
33 geo::Circle intersectionCircle(extPoint, tangentLength);
35 intersect(*
this, intersectionCircle);
36 return intersect.result();
const double _radius
Radius of circle.
calculate the intersection pojnts of 2 entities
const Coordinate center() const
Returns the Center of circle.
double distanceTo(const geo::Coordinate &c) const
Definition at line 25 of file geocircle.cpp.
const double _radius
Radius of circle.
const Coordinate _center
center of cirlce
returns the nearest Point On Path
- Parameters
-
- Returns
- lc::geo::Coordinate
Definition at line 22 of file geocircle.cpp.
const double _radius
Radius of circle.
const Coordinate _center
center of cirlce
double Circle::radius |
( |
| ) |
const |
returns the radius of the circle.
- Returns
- Double radius.
Definition at line 17 of file geocircle.cpp.
const double _radius
Radius of circle.
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Circle & |
c |
|
) |
| |
|
friend |
Definition at line 49 of file geocircle.h.
50 os <<
"Circle(center=" << c._center <<
" radius" << c._radius <<
")";
const double lc::geo::Circle::_radius |
|
private |
The documentation for this class was generated from the following files: