edu.mit.sketch.geom
Interface Translatable
- All Known Subinterfaces:
- GeometricObject, NonTerminal
- public interface Translatable
All the objects who want to be Translatable must implement this
interface.
|
Method Summary |
boolean |
pointIsOn(Point p,
int radius)
Returns true if the point is within +-radius distance from
the curve defining the object. |
boolean |
pointIsOnOriginal(Point p,
int radius)
Returns true if the point is within +-radius distance from
the original curve defining the object. |
void |
translate(double x,
double y)
Add the arguments to the (x, y) position of the object. |
translate
public void translate(double x,
double y)
- Add the arguments to the (x, y) position of the object.
pointIsOn
public boolean pointIsOn(Point p,
int radius)
- Returns true if the point is within +-radius distance from
the curve defining the object. Returns false o/w.
pointIsOnOriginal
public boolean pointIsOnOriginal(Point p,
int radius)
- Returns true if the point is within +-radius distance from
the original curve defining the object. Returns false o/w.