108 std::vector<VECTOR2I>
Intersect(
const SEG& aSeg )
const;
Represent basic circle geometry with utility geometry functions.
VECTOR2I Center
Public to make access simpler.
bool operator==(const CIRCLE &aOther) const =default
int Radius
Public to make access simpler.
std::vector< VECTOR2I > Intersect(const CIRCLE &aCircle) const
Compute the intersection points between this circle and aCircle.
std::vector< VECTOR2I > IntersectLine(const SEG &aLine) const
Compute the intersection points between this circle and aLine.
CIRCLE & ConstructFromTanTanPt(const SEG &aLineA, const SEG &aLineB, const VECTOR2I &aP)
Construct this circle such that it is tangent to the given segments and passes through the given poin...
VECTOR2I NearestPoint(const VECTOR2I &aP) const
Compute the point on the circumference of the circle that is the closest to aP.
bool Contains(const VECTOR2I &aP) const
Return true if aP is on the circumference of this circle.