public Distance lateralDistance() {
        return point1.latLong().distanceTo(point2.latLong());
    }
@Test
    public void testLateralDistance() {
        Point p1 = Point.builder()
            .latLong(LatLong.of(0.0, 0.0))
            .time(EPOCH)
            .build();

        Point p2 = Point.builder()
            .latLong(p1.latLong().projectOut(0.0, 10.0)) //move 10 NM North
            .time(EPOCH)
            .build();

        PointPair pair = new PointPair(p1, p2);

        Distance expectedDist = Distance.ofNauticalMiles(10.0);
        Distance actualDist = pair.lateralDistance();
        Distance error = actualDist.minus(expectedDist).abs();
        Distance tolerance = Distance.ofNauticalMiles(0.001);

        assertTrue(error.isLessThan(tolerance));
    }