Uses of Class
org.evoludo.geom.Segment2D
Packages that use Segment2D
Package
Description
The geometric utilities for working with shapes and spatial relationships.
-
Uses of Segment2D in org.evoludo.geom
Fields in org.evoludo.geom declared as Segment2DModifier and TypeFieldDescriptionRectangle2D.bottomThe bottom segment of the rectangle.Rectangle2D.leftThe left segment of the rectangle.Rectangle2D.rightThe right segment of the rectangle.Rectangle2D.topThe top segment of the rectangle.Methods in org.evoludo.geom that return Segment2DModifier and TypeMethodDescriptionSegment2D.set(double x1, double y1, double x2, double y2) Set the line segment from point(x1,y1)to point(x2,y2).Set the line segment from pointp1to pointp2.Segment2D.shift(double dx, double dy) Methods in org.evoludo.geom with parameters of type Segment2DModifier and TypeMethodDescriptionstatic doubleFind the square distance of the pointpfrom the segments.Line2D.intersection(Segment2D s) Return the intersection of the line and the segmentsorDouble.NaNif there is no intersection.booleanLine2D.intersects(Segment2D s) Check if the line intersects the line segments.booleanSegment2D.intersects(Segment2D s) Check if this segment and the segmentsintersect.Constructors in org.evoludo.geom with parameters of type Segment2D