|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--fundamentals.EuVector
Describe class EuVector here.
| Field Summary | |
protected double |
x
The first coordinate |
protected double |
y
The second coordinate |
| Constructor Summary | |
EuVector()
Creates a new EuVector instance. |
|
EuVector(double angle)
Creates a new EuVector instance. |
|
EuVector(double x,
double y)
There is no way to alter the value of a EuVector |
|
EuVector(fundamentals.EuVector v)
There is no way to alter the value of a EuVector |
|
EuVector(fundamentals.EuVector v1,
fundamentals.EuVector v2)
Constructor by two EuVectors; set to v2-v1. |
|
EuVector(fundamentals.mouseVector v,
fundamentals.mouseInfo info)
There is no way to alter the value of a EuVector |
|
| Method Summary | |
void |
addMultiple(double xx,
double yy,
double t)
Add a multiple of a given vector |
void |
addMultiple(fundamentals.EuVector v,
double t)
Add a multiple of a given vector |
double |
angle()
Describe angle method here. |
double |
determinant(double dx,
double dy)
Describe determinant method here. |
double |
determinant(fundamentals.EuVector delta)
Describe determinant method here. |
double |
distance(double x,
double y)
Describe distance method here. |
double |
distance(fundamentals.EuVector v)
Describe distance method here. |
boolean |
identical(double x,
double y)
False if this is dummy |
boolean |
identical(fundamentals.EuVector other)
False if this or other is dummy |
double |
inner(double dx,
double dy)
Describe inner method here. |
double |
inner(fundamentals.EuVector delta)
Describe inner method here. |
boolean |
isDummy()
Describe isDummy method here. |
double |
length()
Describe length method here. |
fundamentals.EuVector |
normalized()
Describe normalized method here. |
boolean |
parallel(double dx,
double dy)
Describe parallel method here. |
boolean |
parallel(fundamentals.EuVector delta)
Describe parallel method here. |
void |
renormalize(double r)
Describe renormalize method here. |
void |
rotate(double rx,
double ry)
Describe rotate method here. |
void |
rotate(fundamentals.EuVector v)
Describe rotate method here. |
void |
rotateInverse(double rx,
double ry)
Describe rotateInverse method here. |
void |
rotateInverse(fundamentals.EuVector v)
Describe rotateInverse method here. |
void |
testForOverflow()
Describe testForOverflow method here. |
fundamentals.mouseVector |
toMouse(fundamentals.mouseInfo info)
Describe toMouse method here. |
void |
translate(double tx,
double ty)
Translate along a given vector |
void |
translate(fundamentals.EuVector v)
Translate along a given vector |
void |
translateInverse(double tx,
double ty)
Translate backwards along a given vector |
void |
translateInverse(fundamentals.EuVector v)
Describe translateInverse method here. |
double |
xval()
Describe xval method here. |
double |
yval()
Describe yval method here. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected double x
protected double y
| Constructor Detail |
public EuVector(double x,
double y)
x - the first coordinatey - the second coordinatepublic EuVector(fundamentals.EuVector v)
v - the vector we are going to clone
public EuVector(fundamentals.mouseVector v,
fundamentals.mouseInfo info)
v - info -
public EuVector(fundamentals.EuVector v1,
fundamentals.EuVector v2)
v1 - an EuVector valuev2 - an EuVector valuepublic EuVector()
EuVector instance.
public EuVector(double angle)
EuVector instance.
angle - a double value| Method Detail |
public double xval()
xval method here.
double valuepublic double yval()
yval method here.
double value
public boolean identical(double x,
double y)
x - a double valuey - a double value
boolean valuepublic boolean identical(fundamentals.EuVector other)
other - an EuVector value
boolean value
public double inner(double dx,
double dy)
inner method here.
dx - a double valuedy - a double value
double valuepublic double inner(fundamentals.EuVector delta)
inner method here.
delta - an EuVector value
double value
public double determinant(double dx,
double dy)
determinant method here.
dx - a double valuedy - a double value
double valuepublic double determinant(fundamentals.EuVector delta)
determinant method here.
delta - an EuVector value
double value
public double distance(double x,
double y)
distance method here.
x - a double valuey - a double value
double valuepublic double distance(fundamentals.EuVector v)
distance method here.
v - an EuVector value
double value
public boolean parallel(double dx,
double dy)
parallel method here.
dx - a double valuedy - a double value
boolean valuepublic boolean parallel(fundamentals.EuVector delta)
parallel method here.
delta - an EuVector value
boolean valuepublic fundamentals.mouseVector toMouse(fundamentals.mouseInfo info)
toMouse method here.
info - a mouseInfo value
mouseVector valuepublic boolean isDummy()
isDummy method here.
boolean value
public void addMultiple(double xx,
double yy,
double t)
xx - the first coordinateyy - the second coordinatet - the multiple
public void addMultiple(fundamentals.EuVector v,
double t)
v - the vectort - the multiple
public void translate(double tx,
double ty)
tx - the first coordinatety - the second coordinateis the inverse operationpublic void translate(fundamentals.EuVector v)
v - the vectoris the inverse operation
public void translateInverse(double tx,
double ty)
tx - the first coordinatety - the second coordinateis the inverse operationpublic void translateInverse(fundamentals.EuVector v)
translateInverse method here.
v - the vector
public void rotate(double rx,
double ry)
rotate method here.
rx - a double valuery - a double valuepublic void rotate(fundamentals.EuVector v)
rotate method here.
v - an EuVector value
public void rotateInverse(double rx,
double ry)
rotateInverse method here.
rx - a double valuery - a double valuepublic void rotateInverse(fundamentals.EuVector v)
rotateInverse method here.
v - an EuVector valuepublic double length()
length method here.
double valuepublic fundamentals.EuVector normalized()
normalized method here.
EuVector valuepublic void renormalize(double r)
renormalize method here.
r - a double valuepublic double angle()
angle method here.
double value
public void testForOverflow()
throws UserException
testForOverflow method here.
UserException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||