Returns the square distance between a segment and a point. To get the distance between a point and a line (with infinite length) use Utils#ptLineDist.
X-coordinate of the startpoint of the segment.
Y-coordinate of the startpoint of the segment.
X-coordinate of the endpoint of the segment.
Y-coordinate of the endpoint of the segment.
X-coordinate of the point.
Y-coordinate of the point.
Returns the square distance between a segment and a point. To get the distance between a point and a line (with infinite length) use Utils#ptLineDist.