public class Quad
extends java.lang.Object
| Constructor and Description |
|---|
Quad()
Creates a Quad with all points at the origin.
|
Quad(Point nTopLeft,
Point nTopRight,
Point nBottomLeft,
Point nBottomRight)
Creates a Quad from a set of 4 points.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
boolean |
equals(java.lang.Object rhs) |
Point |
getBottomLeft()
Bottom left corner of the Quad.
|
Point |
getBottomRight()
Bottom right corner of the Quad.
|
Point |
getTopLeft()
Top left corner of the Quad.
|
Point |
getTopRight()
Top right corner of the Quad.
|
Rect |
toRect()
Returns a rectangle describing the same area as the quad.
|
java.lang.String |
toString()
Returns a string representation of the quad by calling each point's ToString function.
|
Quad |
transform(Matrix arg0)
Create a new quad from the results of a Transform on each point of the Quad.
|
public void delete()
public boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectpublic Point getTopLeft()
public Point getTopRight()
public Point getBottomLeft()
public Point getBottomRight()
public Quad transform(Matrix arg0)
public java.lang.String toString()
toString in class java.lang.Objectpublic Rect toRect()