Package com.uppaal.model.io2
Class IntPoint
- java.lang.Object
-
- java.awt.geom.Point2D
-
- java.awt.Point
-
- com.uppaal.model.io2.IntPoint
-
- All Implemented Interfaces:
Serializable,Cloneable
public class IntPoint extends Point
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
-
-
Method Summary
Modifier and Type Method Description IntPointadd(int addX, int addY)Returns a point with this point's coordinates added with the given coordinates.IntPointadd(Point add)Returns a point with this point's coordinates added with the given point.IntPointcopy()Creates a new point from a given IntPoint point.IntPointdivide(float f)booleanequals(Object other)Tests whether this object represents the same point as another IntPointfloatlength()Returns the length of this point's vector.IntPointmultiply(float mult)IntPointmultiply(int mult)Returns a point which is a multiplication of this point.IntPointsubtract(int subX, int subY)Returns a point with this point's coordinates subtracted by the given coordinates.IntPointsubtract(Point2D sub)Returns a point with this point's coordinates subtracted by the given point.StringtoString()Returns a string representation of this object.Point2DunitVector()Returns the unit vector for this point's vector.voidunparse(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
-
-
-
-
Method Detail
-
copy
public IntPoint copy()
Creates a new point from a given IntPoint point.
-
subtract
public IntPoint subtract(int subX, int subY)
Returns a point with this point's coordinates subtracted by the given coordinates.
-
subtract
public IntPoint subtract(Point2D sub)
Returns a point with this point's coordinates subtracted by the given point.
-
add
public IntPoint add(int addX, int addY)
Returns a point with this point's coordinates added with the given coordinates.
-
add
public IntPoint add(Point add)
Returns a point with this point's coordinates added with the given point.
-
multiply
public IntPoint multiply(int mult)
Returns a point which is a multiplication of this point.
-
multiply
public IntPoint multiply(float mult)
-
divide
public IntPoint divide(float f)
-
length
public float length()
Returns the length of this point's vector.
-
unitVector
public Point2D unitVector()
Returns the unit vector for this point's vector.
-
unparse
public void unparse(Writer out) throws IOException
- Throws:
IOException
-
toString
public String toString()
Returns a string representation of this object.
-
-