|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiPoint
| Field Summary | |
double |
x
|
double |
y
|
| Constructor Summary | |
MiPoint()
Constructs a new MiPoint. |
|
MiPoint(double x,
double y)
Constructs a new MiPoint. |
|
MiPoint(MiPoint other)
Constructs a new MiPoint that is a copy of the given point. |
|
| Method Summary | |
void |
copy(MiPoint other)
Copies the coordinates of the given point. |
boolean |
equals(MiPoint other)
Returns whether this equals the given point. |
double |
getDistanceSquared(MiPoint other)
Gets the square of the distance between this point and teh given point. |
void |
scale(MiPoint center,
MiScale scale)
Scales the components of the this point by the given scale factor around the given center. |
void |
set(double px,
double py)
Set the coordinates of this point to the given values. |
java.lang.String |
toString()
Return text that describes this point. |
void |
translate(double tx,
double ty)
Translates the components of the this point by the given vector. |
void |
translate(MiVector other)
Translates the components of the this point by the given vector. |
| 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 MiPoint()
public MiPoint(MiPoint other)
other - the point to copy
public MiPoint(double x,
double y)
x - the x coordinatey - the y coordinate| Method Detail |
public void set(double px,
double py)
px - the x coordinatepy - the y coordinatepublic void copy(MiPoint other)
other - the point to copypublic void translate(MiVector other)
other - the vector to translate this by
public void translate(double tx,
double ty)
tx - the x amount to translate this byty - the y amount to translate this by
public void scale(MiPoint center,
MiScale scale)
center - the center to scale aroundscale - the scale factorpublic boolean equals(MiPoint other)
other - the point to compare this with
public double getDistanceSquared(MiPoint other)
other - the point to get the distance to
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||