|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--fundamentals.mouseVector
| Field Summary | |
static int |
MouseTolerance
The number of pixels determining the maximal allowed distance between a mouse position and an object, under which they can be considered close. |
int |
x
The first coordinate |
int |
y
The second coordinate |
| Constructor Summary | |
mouseVector(fundamentals.EuVector v,
fundamentals.mouseInfo info)
|
|
mouseVector(int x,
int y)
|
|
| Method Summary | |
boolean |
close(fundamentals.mouseVector other)
Determines whether another vector is 'close enough' |
boolean |
distanceIs(fundamentals.mouseVector other,
int d)
Determines whether another vector is 'close enough' to having a specific distance from the present one |
boolean |
parallel(fundamentals.EuVector other)
Determines whether another vector is 'close enough' to being parallel |
void |
subtract(fundamentals.mouseVector v)
Subtracts another mouseVector from the present one |
fundamentals.EuVector |
toMath(fundamentals.mouseInfo info)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int MouseTolerance
public int x
public int y
| Constructor Detail |
public mouseVector(int x,
int y)
x - the first coordinatey - the second coordinate
public mouseVector(fundamentals.EuVector v,
fundamentals.mouseInfo info)
v - a mathematical representation of the vectorinfo - the information needed to transform it into a canvas vector| Method Detail |
public boolean close(fundamentals.mouseVector other)
other - the mouseVector being compared to the present one
public boolean parallel(fundamentals.EuVector other)
other - the mouseVector being compared to the present one
public boolean distanceIs(fundamentals.mouseVector other,
int d)
other - the mouseVector being compared to the present oned - the distance
public void subtract(fundamentals.mouseVector v)
v - the subtracted vectorpublic fundamentals.EuVector toMath(fundamentals.mouseInfo info)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||