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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description 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 IntPointfloat
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
-
Constructor Details
-
Method Details
-
copy
Creates a new point from a given IntPoint point. -
subtract
Returns a point with this point's coordinates subtracted by the given coordinates. -
subtract
Returns a point with this point's coordinates subtracted by the given point. -
add
Returns a point with this point's coordinates added with the given coordinates. -
add
Returns a point with this point's coordinates added with the given point. -
multiply
Returns a point which is a multiplication of this point. -
multiply
-
divide
-
length
public float length()Returns the length of this point's vector. -
unitVector
Returns the unit vector for this point's vector. -
unparse
- Throws:
IOException
-
toString
Returns a string representation of this object. -
equals
Tests whether this object represents the same point as another IntPoint
-