java.lang.Object
java.awt.geom.Point2D
java.awt.geom.Point2D.Double
org.jhotdraw8.geom.intersect.IntersectionPoint
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
IntersectionPointEx
Provides the coordinates and the argument value of one intersecting
function at an intersection point.
This class extends Point2D.Double rather than aggregating it to reduce pointer chasing. As a consequence, IntersectionPoint only uses the x and y coordinates for equals and hashCode.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float -
Field Summary
FieldsFields inherited from class java.awt.geom.Point2D.Double
x, y -
Constructor Summary
ConstructorsConstructorDescriptionIntersectionPoint(double x, double y, double argumentA) IntersectionPoint(double x, double y, double argumentA, int segmentA) IntersectionPoint(Point2D p, double argumentA) IntersectionPoint(Point2D p, double argumentA, int segmentA) -
Method Summary
Modifier and TypeMethodDescriptiondoubleintIf parametric function 'a' is a segment of a segmented function, then this field is used to indicate to which segment the parametric function belongs.toString()Methods inherited from class java.awt.geom.Point2D.Double
getX, getY, setLocationMethods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
-
Field Details
-
argumentA
protected final double argumentA -
segmentA
protected final int segmentA
-
-
Constructor Details
-
IntersectionPoint
public IntersectionPoint(double x, double y, double argumentA) -
IntersectionPoint
public IntersectionPoint(double x, double y, double argumentA, int segmentA) -
IntersectionPoint
-
IntersectionPoint
-
-
Method Details
-
getArgumentA
public double getArgumentA() -
getSegmentA
public int getSegmentA()If parametric function 'a' is a segment of a segmented function, then this field is used to indicate to which segment the parametric function belongs.The index of the segment.
-
toString
- Overrides:
toStringin classPoint2D.Double
-