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 TypeFieldDescription(package private) Segment2DRectangle2D.bottomThe bottom segment of the rectangle.(package private) Segment2DRectangle2D.leftThe left segment of the rectangle.(package private) Segment2DRectangle2D.rightThe right segment of the rectangle.(package private) Segment2DRectangle2D.topThe top segment of the rectangle.Methods in org.evoludo.geom that return Segment2DMethods 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