Uses of Class
org.evoludo.geom.Segment2D
Packages that use Segment2D
-
Uses of Segment2D in org.evoludo.geom
Fields in org.evoludo.geom declared as Segment2DModifier and TypeFieldDescriptionRectangle2D.bottom
The bottom segment of the rectangle.Rectangle2D.left
The left segment of the rectangle.Rectangle2D.right
The right segment of the rectangle.Rectangle2D.top
The 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 pointp1
to pointp2
.Segment2D.shift
(double dx, double dy) Methods in org.evoludo.geom with parameters of type Segment2DModifier and TypeMethodDescriptionstatic double
Find the square distance of the pointp
from the segments
.Line2D.intersection
(Segment2D s) Return the intersection of the line and the segments
orDouble.NaN
if there is no intersection.boolean
Line2D.intersects
(Segment2D s) Check if the line intersects the line segments
.boolean
Segment2D.intersects
(Segment2D s) Check if this segment and the segments
intersect.Constructors in org.evoludo.geom with parameters of type Segment2D