|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.geom.Point2D
java.awt.Point
com.uppaal.model.io2.IntPoint
public class IntPoint
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Point2D |
|---|
Point2D.Double, Point2D.Float |
| Field Summary |
|---|
| Fields inherited from class java.awt.Point |
|---|
x, y |
| Constructor Summary | |
|---|---|
IntPoint(int x,
int y)
Creates a point from given coordinates. |
|
IntPoint(Point point)
Creates a point from a given integer point. |
|
IntPoint(Point2D point)
|
|
| Method Summary | |
|---|---|
IntPoint |
add(int addX,
int addY)
Returns a point with this point's coordinates added with the given coordinates. |
IntPoint |
add(Point add)
Returns a point with this point's coordinates added with the given point. |
IntPoint |
copy()
Creates a new point from a given IntPoint point. |
IntPoint |
divide(float f)
|
boolean |
equals(Object other)
Tests whether this object represents the same point as another IntPoint |
float |
length()
Returns the length of this point's vector. |
IntPoint |
multiply(float mult)
|
IntPoint |
multiply(int mult)
Returns a point which is a multiplication of this point. |
IntPoint |
subtract(int subX,
int subY)
Returns a point with this point's coordinates subtracted by the given coordinates. |
IntPoint |
subtract(Point2D sub)
Returns a point with this point's coordinates subtracted by the given point. |
String |
toString()
Returns a string representation of this object. |
Point2D |
unitVector()
Returns the unit vector for this point's vector. |
void |
unparse(Writer out)
|
| Methods inherited from class java.awt.Point |
|---|
getLocation, getX, getY, move, setLocation, setLocation, setLocation, translate |
| Methods inherited from class java.awt.geom.Point2D |
|---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IntPoint(int x,
int y)
public IntPoint(Point point)
public IntPoint(Point2D point)
| Method Detail |
|---|
public IntPoint copy()
public IntPoint subtract(int subX,
int subY)
public IntPoint subtract(Point2D sub)
public IntPoint add(int addX,
int addY)
public IntPoint add(Point add)
public IntPoint multiply(int mult)
public IntPoint multiply(float mult)
public IntPoint divide(float f)
public float length()
public Point2D unitVector()
public void unparse(Writer out)
throws IOException
IOExceptionpublic String toString()
toString in class Pointpublic boolean equals(Object other)
equals in class Point
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||