Line2D
Defines a straight line in a cartesian plane.
Inheritors
Properties
Indicates if the line is aligned to the x-axis.
Indicates if the line is aligned to the y-axis.
The slope of the line, if isVertical this is undefined (= Double.NaN).
The x-coordinate of the x-intercept (= the point where the line intersects the x-axis). If isHorizontal there's no x-intercept and this is Double.NaN.
The y-coordinate of the y-intercept (= the point where the line intersects the y-axis). If isVertical there's no y-intercept and this is Double.NaN. The slope-intercept representation (y = mx + b) uses this intercept.
Functions
Finds the point belonging to the line with the given x-coordinate. Throws an UnsupportedOperationException if the line isVertical.
Intersects a line and a circle.
Checks if two lines are parallel.