Line2D
Properties
Link copied to clipboard
Indicates if the line is aligned to the x-axis.
Link copied to clipboard
Indicates if the line is aligned to the y-axis.
Link copied to clipboard
The slope of the line, if isVertical this is undefined (= Double.NaN).
Link copied to clipboard
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.
Link copied to clipboard
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
Link copied to clipboard
Finds the point belonging to the line with the given x-coordinate. Throws an UnsupportedOperationException if the line isVertical.
Link copied to clipboard
Intersects a line and a circle.
Link copied to clipboard
Checks if two lines are parallel.