public static function distanceFactory($lat1, $long1, $lat2, $long2) {
        $point1 = new L(new C($lat1), new C($long1));
        $point2 = new L(new C($lat2), new C($long2));
        return new D($point1, $point2);
    }
public static function distanceFactory($lat1, $long1, $lat2, $long2) {
        $point1 = new L(new C($lat1), new C($long1));
        $point2 = new L(new C($lat2), new C($long2));
        return new D($point1, $point2);
    }
public static function distanceFactory ( $ lat1 , $ long1 , $ lat2 , $ long2 ) { $ point1 = new L ( new C ( $ lat1 ) , new C ( $ long1 ) ) ; $ point2 = new L ( new C ( $ lat2 ) , new C ( $ long2 ) ) ; return new D ( $ point1 , $ point2 ) ; }
Get a primed instance of the distance object
@param string|float $lat1
@param string|float $long1
@param string|float $lat2
@param string|float $long2
@return \Treffynnon\Navigator\Distance
Get a primed instance of the distance object