Beispiel #1
0
 /**
  * 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());
 }
Beispiel #2
0
 @Override // from ICircle
 public boolean intersects(ICircle c) {
   double maxDist = radius() + c.radius();
   return Points.distanceSq(x(), y(), c.x(), c.y()) < (maxDist * maxDist);
 }
Beispiel #3
0
 /** Constructs a circle with properties equal to the supplied circle. */
 public Circle(ICircle c) {
   this(c.x(), c.y(), c.radius());
 }