Method | Description | |
---|---|---|
calculateBearing ( |
This method calculates the initial bearing between the two points. | |
calculateDestination ( |
Calculates a destination point for the given point, bearing angle, and distance. | |
calculateFinalBearing ( |
Calculates the final bearing between the two points. |
public calculateBearing ( |
||
$point1 | ||
$point2 | ||
return | float | Bearing Angle |
public calculateDestination ( |
||
$point | ||
$bearing | float | the bearing angle between 0 and 360 degrees |
$distance | float | the distance to the destination point in meters |
return |
public calculateFinalBearing ( |
||
$point1 | ||
$point2 | ||
return | float |