PHP Class Location\Utility\PerpendicularDistance

Author: Marcus Jaschen ([email protected])
显示文件 Open project: mjaschen/phpgeo

Public Methods

Method Description
getPerpendicularDistance ( Coordinate $point, Line $line ) : float

Protected Methods

Method Description
deg2radLatitude ( float $latitude ) : float
deg2radLongitude ( float $longitude ) : float

Method Details

deg2radLatitude() protected method

protected deg2radLatitude ( float $latitude ) : float
$latitude float
return float

deg2radLongitude() protected method

protected deg2radLongitude ( float $longitude ) : float
$longitude float
return float

getPerpendicularDistance() public method

public getPerpendicularDistance ( Coordinate $point, Line $line ) : float
$point Location\Coordinate
$line Location\Line
return float