All Packages Class Hierarchy This Package Previous Next Index
Class fundamentals.EuWorkVector
java.lang.Object
|
+----fundamentals.EuVector
|
+----fundamentals.EuWorkVector
- public class EuWorkVector
- extends EuVector
-
EuWorkVector(double)
- Constructor by angle; yields a unit vector
-
EuWorkVector(double, double)
- Constructor by cartesian coordinates
-
EuWorkVector(EuVector)
- Constructor by EuVector; copies the coordinates
-
addMultiple(double, double, double)
- Add a multiple of a given vector
-
addMultiple(EuVector, double)
- Add a multiple of a given vector
-
length()
-
-
rotate(double, double)
-
-
rotate(EuVector)
-
-
rotateInverse(double, double)
-
-
rotateInverse(EuVector)
-
-
toMouse(mouseInfo)
-
-
translate(double, double)
- Translate along a given vector
-
translate(EuVector)
- Translate along a given vector
-
translateInverse(double, double)
- Translate backwards along a given vector
-
translateInverse(EuVector)
-
EuWorkVector
public EuWorkVector(double x,
double y)
- Constructor by cartesian coordinates
EuWorkVector
public EuWorkVector(double a)
- Constructor by angle; yields a unit vector
EuWorkVector
public EuWorkVector(EuVector v)
- Constructor by EuVector; copies the coordinates
addMultiple
public void addMultiple(double xx,
double yy,
double t)
- Add a multiple of a given vector
- Parameters:
- xx - the first coordinate
- yy - the second coordinate
- t - the multiple
addMultiple
public void addMultiple(EuVector v,
double t)
- Add a multiple of a given vector
- Parameters:
- v - the vector
- t - the multiple
translate
public void translate(double tx,
double ty)
- Translate along a given vector
- Parameters:
- tx - the first coordinate
- ty - the second coordinate
- See Also:
- translateInverse
translate
public void translate(EuVector v)
- Translate along a given vector
- Parameters:
- v - the vector
- See Also:
- translateInverse
translateInverse
public void translateInverse(double tx,
double ty)
- Translate backwards along a given vector
- Parameters:
- tx - the first coordinate
- ty - the second coordinate
- See Also:
- translate
translateInverse
public void translateInverse(EuVector v)
- Parameters:
- v - the vector
rotate
public void rotate(double rx,
double ry)
rotate
public void rotate(EuVector v)
rotateInverse
public void rotateInverse(double rx,
double ry)
rotateInverse
public void rotateInverse(EuVector v)
length
public double length()
- Overrides:
- length in class EuVector
toMouse
public mouseVector toMouse(mouseInfo info)
- Overrides:
- toMouse in class EuVector
All Packages Class Hierarchy This Package Previous Next Index