All Packages Class Hierarchy This Package Previous Next Index
Class fundamentals.mouseVector
java.lang.Object
|
+----fundamentals.mouseVector
- public class mouseVector
- extends Object
-
MouseTolerance
- The number of pixels determining the maximal allowed distance
between a mouse position and an object, under which they can
be considered close.
-
x
- The first coordinate
-
y
- The second coordinate
-
mouseVector(EuVector, mouseInfo)
-
-
mouseVector(int, int)
-
-
close(mouseVector)
- Determines whether another vector is 'close enough'
-
distanceIs(mouseVector, int)
- Determines whether another vector is 'close enough' to having
a specific distance from the present one
-
parallel(EuVector)
- Determines whether another vector is 'close enough' to being
parallel
-
subtract(mouseVector)
- Subtracts another mouseVector from the present one
MouseTolerance
public static final 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.
x
public int x
- The first coordinate
y
public int y
- The second coordinate
mouseVector
public mouseVector(int x,
int y)
- Parameters:
- x - the first coordinate
- y - the second coordinate
mouseVector
public mouseVector(EuVector v,
mouseInfo info)
- Parameters:
- v - a mathematical representation of the vector
- info - the information needed to transform it into a canvas vector
close
public boolean close(mouseVector other)
- Determines whether another vector is 'close enough'
- Parameters:
- other - the mouseVector being compared to the present one
- Returns:
- true if they are close
parallel
public boolean parallel(EuVector other)
- Determines whether another vector is 'close enough' to being
parallel
- Parameters:
- other - the mouseVector being compared to the present one
- Returns:
- true if they are parallel
distanceIs
public boolean distanceIs(mouseVector other,
int d)
- Determines whether another vector is 'close enough' to having
a specific distance from the present one
- Parameters:
- other - the mouseVector being compared to the present one
- d - the distance
- Returns:
- true if the distance is as specified
subtract
public void subtract(mouseVector v)
- Subtracts another mouseVector from the present one
- Parameters:
- v - the subtracted vector
All Packages Class Hierarchy This Package Previous Next Index