/** * Sets the properties of this circle to be equal to those of the supplied circle. * * @return a reference to this this, for chaining. */ public Circle set(ICircle c) { return set(c.x(), c.y(), c.radius()); }
@Override // from ICircle public boolean intersects(ICircle c) { double maxDist = radius() + c.radius(); return Points.distanceSq(x(), y(), c.x(), c.y()) < (maxDist * maxDist); }
/** Constructs a circle with properties equal to the supplied circle. */ public Circle(ICircle c) { this(c.x(), c.y(), c.radius()); }