public interface Selectable
extends java.lang.Cloneable
| Modifier and Type | Method and Description |
|---|---|
Selectable |
clone()
Returns a clone of this object.
|
boolean |
containsPoint(float x,
float y,
float margin)
Returns
true if this object contains the point at
(x, y) with a given margin. |
float[][] |
getPoints()
Returns the points of the shape surrounding this object.
|
boolean |
intersectsRectangle(float x0,
float y0,
float x1,
float y1)
Returns
true if this object intersects
with the horizontal rectangle which opposite corners are at points
(x0, y0) and (x1, y1). |
void |
move(float dx,
float dy)
Moves this object of (
dx, dy) units. |
float[][] getPoints()
boolean intersectsRectangle(float x0,
float y0,
float x1,
float y1)
true if this object intersects
with the horizontal rectangle which opposite corners are at points
(x0, y0) and (x1, y1).boolean containsPoint(float x,
float y,
float margin)
true if this object contains the point at
(x, y) with a given margin.void move(float dx,
float dy)
dx, dy) units.Selectable clone()

© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License