ewe.fx
Interface Area

All Known Implementing Classes:
Polygon, Rect

public interface Area

An Area represents an arbitrarily shaped 2D area.


Method Summary
 Rect getRect(Rect dest)
          Get the bounding rectangle of the area.
 boolean intersects(Area other)
          See if this Area intersects another.
 boolean isIn(int x, int y)
          Check if the point is in the area.
 

Method Detail

isIn

public boolean isIn(int x,
                    int y)
Check if the point is in the area.


intersects

public boolean intersects(Area other)
See if this Area intersects another. This intersection is not necessarily an intersection of the bounding rectangles.


getRect

public Rect getRect(Rect dest)
Get the bounding rectangle of the area.

Parameters:
dest - an optional destination Rect.
Returns:
The dest Rect or a newly created Rect if dest is null.