public static double getSquaredDistanceToPoint(
            final double pFromX, final double pFromY, final double pToX, final double pToY) {
        final double dX = pFromX - pToX;
        final double dY = pFromY - pToY;
        return dX * dX + dY * dY;
    }
@Test
    public void test_getSquareDistanceToPoint() {
        final int xA = 100;
        final int yA = 200;
        final int deltaX = 10;
        final int deltaY = 20;
        Assert.assertEquals(0,
                Distance.getSquaredDistanceToPoint(xA, yA, xA, yA), mDelta);
        Assert.assertEquals(deltaX * deltaX,
                Distance.getSquaredDistanceToPoint(xA, yA, xA + deltaX, yA), mDelta);
        Assert.assertEquals(deltaY * deltaY,
                Distance.getSquaredDistanceToPoint(xA, yA, xA, yA + deltaY), mDelta);
        Assert.assertEquals(deltaX * deltaX + deltaY * deltaY,
                Distance.getSquaredDistanceToPoint(xA, yA, xA + deltaX, yA + deltaY), mDelta);
    }