public static double getSquaredDistanceToLine ( final double pFromX , final double pFromY , final double pAX , final double pAY , final double pBX , final double pBY ) { return getSquaredDistanceToProjection ( pFromX , pFromY , pAX , pAY , pBX , pBY , getProjectionFactorToLine ( pFromX , pFromY , pAX , pAY , pBX , pBY ) ) ; }
Square of the distance between a point and line AB