ptLineDistSq

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.

Return

a double value that is the square of the distance from a specified Point2D to the current line.

Since

1.2

Parameters

pt

the specified Point2D being measured against this line


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.

Return

a double value that is the square of the distance from a specified point to the current line.

Since

1.2

Parameters

px

the X coordinate of the specified point being measured against this line

py

the Y coordinate of the specified point being measured against this line