src/main/java/com/mxgraph/util/mxLine.java
public double ptLineDistSq(mxPoint pt)
	{
		return new Line2D.Double(getX(), getY(), endPoint.getX(), endPoint
				.getY()).ptLineDistSq(pt.getX(), pt.getY());
	}
/**
	 * Returns the square of the shortest distance from a point to this line.
	 * The line is considered extrapolated infinitely in both directions for 
	 * the purposes of the calculation.
	 *
	 * @param pt the point whose distance is being measured
	 * @return the square of the distance from the specified point to this line.
	 */
Returns the square of the shortest distance from a point to this line.
The line is considered extrapolated infinitely in both directions for
the purposes of the calculation.

@param pt the point whose distance is being measured
@return the square of the distance from the specified point to this line.
Returns the square of the shortest distance from a point to this line . The line is considered extrapolated infinitely in both directions for the purposes of the calculation . @param pt the point whose distance is being measured @return the square of the distance from the specified point to this line .
public double ptLineDistSq(mxPoint pt)
	{
		return new Line2D.Double(getX(), getY(), endPoint.getX(), endPoint
				.getY()).ptLineDistSq(pt.getX(), pt.getY());
	}
public double ptLineDistSq ( mxPoint pt ) { return new Line2D . Double ( getX ( ) , getY ( ) , endPoint . getX ( ) , endPoint . getY ( ) ) . ptLineDistSq ( pt . getX ( ) , pt . getY ( ) ) ; }
Returns the square of the shortest distance from a point to this line.
Returns the square of the shortest distance from a point to this line .