All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fundamentals.EuWorkVector

java.lang.Object
   |
   +----fundamentals.EuVector
           |
           +----fundamentals.EuWorkVector

public class EuWorkVector
extends EuVector

Constructor Index

 o EuWorkVector(double)
Constructor by angle; yields a unit vector
 o EuWorkVector(double, double)
Constructor by cartesian coordinates
 o EuWorkVector(EuVector)
Constructor by EuVector; copies the coordinates

Method Index

 o addMultiple(double, double, double)
Add a multiple of a given vector
 o addMultiple(EuVector, double)
Add a multiple of a given vector
 o length()
 o rotate(double, double)
 o rotate(EuVector)
 o rotateInverse(double, double)
 o rotateInverse(EuVector)
 o toMouse(mouseInfo)
 o translate(double, double)
Translate along a given vector
 o translate(EuVector)
Translate along a given vector
 o translateInverse(double, double)
Translate backwards along a given vector
 o translateInverse(EuVector)

Constructors

 o EuWorkVector
 public EuWorkVector(double x,
                     double y)
Constructor by cartesian coordinates

 o EuWorkVector
 public EuWorkVector(double a)
Constructor by angle; yields a unit vector

 o EuWorkVector
 public EuWorkVector(EuVector v)
Constructor by EuVector; copies the coordinates

Methods

 o 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
 o addMultiple
 public void addMultiple(EuVector v,
                         double t)
Add a multiple of a given vector

Parameters:
v - the vector
t - the multiple
 o 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
 o translate
 public void translate(EuVector v)
Translate along a given vector

Parameters:
v - the vector
See Also:
translateInverse
 o 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
 o translateInverse
 public void translateInverse(EuVector v)
Parameters:
v - the vector
 o rotate
 public void rotate(double rx,
                    double ry)
 o rotate
 public void rotate(EuVector v)
 o rotateInverse
 public void rotateInverse(double rx,
                           double ry)
 o rotateInverse
 public void rotateInverse(EuVector v)
 o length
 public double length()
Overrides:
length in class EuVector
 o toMouse
 public mouseVector toMouse(mouseInfo info)
Overrides:
toMouse in class EuVector

All Packages  Class Hierarchy  This Package  Previous  Next  Index