|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBooleanMatrix
BooleanMatrix Class
This class represents a two-dimensional array of boolean.
Field Summary | |
static boolean |
isLeft
tells if the line goes on the left side of the rectangle (setBooleanMatrix method) |
static boolean |
isUp
tells if the line goes over the rectangle (setBooleanMatrix method) |
Constructor Summary | |
BooleanMatrix(int N)
Creates a N wide boolean matrix |
Method Summary | |
boolean |
get(int i,
int j)
Returns the value of the square at (i,j) |
void |
init()
Sets every squares to false |
void |
setBooleanMatrix(int i,
int j,
double g,
RectDouble rect,
double boxWidth,
double boxHeight)
Calculates the intersections between a line and the squares of a rectangle. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean isUp
public static boolean isLeft
Constructor Detail |
public BooleanMatrix(int N)
Method Detail |
public void init()
public boolean get(int i, int j)
public void setBooleanMatrix(int i, int j, double g, RectDouble rect, double boxWidth, double boxHeight)
i
- X-coordinate of a line pointj
- Y-coordinate of a line pointg
- the angle of the line in radiansrect
- the coordinate of the rectangleboxWidth
- the squares widthboxHeight
- the squares height
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |