|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiVector
| Field Summary | |
double |
x
|
double |
y
|
| Constructor Summary | |
MiVector()
Constructs a new MiVector. |
|
MiVector(double x,
double y)
Constructs a new MiVector. |
|
MiVector(MiVector other)
Constructs a new MiVector that is a copy of the given vector. |
|
| Method Summary | |
void |
add(double tx,
double ty)
Adds the given components to this vector. |
void |
add(MiVector other)
Adds the components of the given vector to this. |
void |
copy(MiVector other)
Copies the components of the given vector. |
boolean |
equals(MiVector other)
Returns whether this equals the given vector. |
boolean |
isZero()
Return whether the components of this vector are zero. |
void |
set(double vx,
double vy)
Set the components of this vector to the given values. |
java.lang.String |
toString()
Return text that describes this vector. |
void |
zeroOut()
Set the components of this vector to zero. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double x
public double y
| Constructor Detail |
public MiVector()
public MiVector(MiVector other)
other - the vector to copy
public MiVector(double x,
double y)
x - the x componenty - the y component| Method Detail |
public void set(double vx,
double vy)
vx - the x componentvy - the y componentpublic void add(MiVector other)
other - the vector to add to this one
public void add(double tx,
double ty)
tx - the x component to add to thisty - the y component to add to thispublic void copy(MiVector other)
other - the vector to copypublic boolean equals(MiVector other)
other - the vector to compare this with
public void zeroOut()
public boolean isZero()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||