Uses of Class
org.evoludo.geom.Line2D
Packages that use Line2D
-
Uses of Line2D in org.evoludo.geom
Subclasses of Line2D in org.evoludo.geomModifier and TypeClassDescriptionclass
Utility 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 slopem
andy
-interceptb
of 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 pointsp1
andp2
.Set the line to pass through pointp
in the direction of vectorv
.Line2D.shift
(double dx, double dy) Shift the line right bydx
and up bydy
.Methods in org.evoludo.geom with parameters of type Line2DModifier and TypeMethodDescriptionstatic double
Calculate the squared distance between pointp
and the linel
.Line2D.intersection
(Line2D l) Return the intersection of two lines orDouble.NaN
if no intersection.boolean
Line2D.intersects
(Line2D l) Check if the line intersects the linel
.boolean
Rectangle2D.intersects
(Line2D l) Check if the line (or line segment)l
intersects the rectangle.boolean
Segment2D.intersects
(Line2D l) boolean
Check if two lines are parallel.Constructors in org.evoludo.geom with parameters of type Line2D