Uses of Class
org.evoludo.geom.Line2D
Packages that use Line2D
Package
Description
The geometric utilities for working with shapes and spatial relationships.
-
Uses of Line2D in org.evoludo.geom
Subclasses of Line2D in org.evoludo.geomModifier and TypeClassDescriptionclassUtility class for deal with (finite) line segments in 2D.Methods in org.evoludo.geom that return Line2DModifier and TypeMethodDescriptionLine2D.set(double m, double b) Set the slopemandy-interceptbof the line.Line2D.set(double x1, double y1, double x2, double y2) Set the line to pass through points(x1,y1)and(x2,y2).Set the line to pass through pointsp1andp2.Set the line to pass through pointpin the direction of vectorv.Line2D.shift(double dx, double dy) Shift the line right bydxand up bydy.Methods in org.evoludo.geom with parameters of type Line2DModifier and TypeMethodDescriptionstatic doubleCalculate the squared distance between pointpand the linel.Line2D.intersection(Line2D l) Return the intersection of two lines orDouble.NaNif no intersection.booleanLine2D.intersects(Line2D l) Check if the line intersects the linel.booleanRectangle2D.intersects(Line2D l) Check if the line (or line segment)lintersects the rectangle.booleanSegment2D.intersects(Line2D l) booleanCheck if two lines are parallel.Constructors in org.evoludo.geom with parameters of type Line2D