Constructors
Functions
Tests if a given Point2D is inside the boundary of this Line2D. This method is required to implement the {@link Shape} interface, but in the case of Line2D objects it always returns false since a line contains no area.
Tests if the interior of this Line2D entirely contains the specified Rectangle2D. This method is required to implement the Shape interface, but in the case of Line2D objects it always returns false since a line contains no area.
Tests if a specified coordinate is inside the boundary of this Line2D. This method is required to implement the {@link Shape} interface, but in the case of Line2D objects it always returns false since a line contains no area.
Tests if the interior of this Line2D entirely contains the specified set of rectangular coordinates. This method is required to implement the Shape interface, but in the case of Line2D objects it always returns false since a line contains no area.
{@inheritDoc}
Returns the distance from a Point2D to this line. The distance measured is the distance between the specified point and the closest point on the infinitely-extended line defined by this Line2D. If the specified point intersects the line, this method returns 0.0.
Returns the distance from a point to this line. The distance measured is the distance between the specified point and the closest point on the infinitely-extended line defined by this Line2D. If the specified point intersects the line, this method returns 0.0.
Returns the square of the distance from a specified Point2D to this line. The distance measured is the distance between the specified point and the closest point on the infinitely-extended line defined by this Line2D. If the specified point intersects the line, this method returns 0.0.
Returns the square of the distance from a point to this line. The distance measured is the distance between the specified point and the closest point on the infinitely-extended line defined by this Line2D. If the specified point intersects the line, this method returns 0.0.
Returns an indicator of where the specified point {@code (px,py)} lies with respect to this line segment. See the method comments of {@link #relativeCCW(double, double, double, double, double, double)} to interpret the return value.
Sets the location of the end points of this Line2D to the same as those end points of the specified Line2D.
Sets the location of the end points of this Line2D to the specified Point2D coordinates.
Sets the location of the end points of this Line2D to the specified double coordinates.