EDU.cmu.cs.coral.util
Class Circle2
java.lang.Object
|
+--EDU.cmu.cs.coral.util.Circle2
- public class Circle2
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
A class for manipulating Circle2.
Copyright
(c)1998 Tucker Balch and Carnegie Mellon University
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
clone()
Create a new Circle2 by cloning. |
void |
offsetSimCircle(Vec2 offset)
translate the Circle2 to a new origin |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
centre
public Vec2 centre
radius
public double radius
Circle2
public Circle2()
Circle2
public Circle2(Vec2 origin,
double rad)
Circle2
public Circle2(double x,
double y,
double rad)
Circle2
public Circle2(Circle2 c)
clone
public java.lang.Object clone()
- Create a new Circle2 by cloning.
- Overrides:
- clone in class java.lang.Object
- Parameters:
c
- Circle2, the Circle2 to copy.
offsetSimCircle
public void offsetSimCircle(Vec2 offset)
- translate the Circle2 to a new origin
- Parameters:
offset,
- the new origin of the translated Circle2