de.unihalle.informatik.MiToBo.core.datatypes
Class MTBPolygon2D.IntersectionPoint2D
java.lang.Object
java.awt.geom.Point2D
java.awt.geom.Point2D.Double
de.unihalle.informatik.MiToBo.core.datatypes.MTBPolygon2D.IntersectionPoint2D
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Enclosing class:
- MTBPolygon2D
private class MTBPolygon2D.IntersectionPoint2D
- extends java.awt.geom.Point2D.Double
Helper class for function simplify().
This class allows to differentiate between common 2D points in Java and
polygon intersection points, while keeping them in a single list.
- Author:
- moeller
Nested classes/interfaces inherited from class java.awt.geom.Point2D |
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
Fields inherited from class java.awt.geom.Point2D.Double |
x, y |
Method Summary |
boolean |
equals(java.lang.Object ptc)
Checks if two intersection points are equal. |
Methods inherited from class java.awt.geom.Point2D.Double |
getX, getY, setLocation, toString |
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 |
MTBPolygon2D.IntersectionPoint2D
public MTBPolygon2D.IntersectionPoint2D(double xx,
double yy)
- Default constructor.
- Parameters:
xx
- x-coordinate of the point.yy
- y-coordinate of the point.
equals
public boolean equals(java.lang.Object ptc)
- Checks if two intersection points are equal.
According to numerical inaccuracies during intersection calculation,
intersection points referring to the same intersection may have small
differences in their coordinates. Hence, they are assumed to be equal, if
these differences are sufficiently small.
- Overrides:
equals
in class java.awt.geom.Point2D
- See Also:
Point2D.equals(java.lang.Object)