|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcaptcha.graphics.Quadrangle
public class Quadrangle
This class is the representation of an quadrangle (not necessarily a rectangle).
| Field Summary | |
|---|---|
private int[][] |
m_corners
Stores the 4 corners of the quadrangle (4 x 2 matrix). |
| Constructor Summary | |
|---|---|
Quadrangle(int a_x0,
int a_y0,
int a_x1,
int a_y1,
int a_x2,
int a_y2,
int a_x3,
int a_y3)
Creates a new quadrangle given by the 4 corners (x and y values). |
|
| Method Summary | |
|---|---|
int |
getX0()
Returns the X position of the first corner. |
int |
getX1()
Returns the X position of the second corner. |
int |
getX2()
Returns the X position of the third corner. |
int |
getX3()
Returns the X position of the fourth corner. |
int |
getY0()
Returns the Y position of the first corner. |
int |
getY1()
Returns the Y position of the second corner. |
int |
getY2()
Returns the Y position of the third corner. |
int |
getY3()
Returns the Y position of the fourth corner. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int[][] m_corners
| Constructor Detail |
|---|
public Quadrangle(int a_x0,
int a_y0,
int a_x1,
int a_y1,
int a_x2,
int a_y2,
int a_x3,
int a_y3)
a_x0 - X position of the first corner.a_y0 - Y position of the first corner.a_x1 - X position of the second corner.a_y1 - Y position of the second corner.a_x2 - X position of the third corner.a_y2 - Y position of the third corner.a_x3 - X position of the fourtht corner.a_y3 - Y position of the fourth corner.| Method Detail |
|---|
public int getX0()
public int getY0()
public int getX1()
public int getY1()
public int getX2()
public int getY2()
public int getX3()
public int getY3()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||