9 throw "Invalid radius";
31 double tangentLength = sqrt(distance * distance -
_radius *
_radius);
33 geo::Circle intersectionCircle(extPoint, tangentLength);
35 intersect(*
this, intersectionCircle);
Coordinate nearestPointOnEntity(const Coordinate &coord) const
const double _radius
Radius of circle.
calculate the intersection pojnts of 2 entities
const Coordinate _center
center of cirlce
double radius() const
returns the radius of the circle.
Coordinate nearestPointOnPath(const Coordinate &coord) const
returns the nearest Point On Path
Circle(const Coordinate ¢er, double radius)
std::vector< geo::Coordinate > result() const
virtual std::vector< Coordinate > lineTangentPointsOnEntity(const lc::geo::Coordinate &extPoint) override
Give line tangent points on entity.
const Coordinate center() const
Returns the Center of circle.
double distanceTo(const geo::Coordinate &c) const