bearing.php
Table of Contents
Functions
- bearing() : float
- Calculates the initial bearing (sometimes referred to as forward azimuth) which if followed in a straight line along a great-circle arc will take you from the start point to the end point (in degrees).
Functions
bearing()
Calculates the initial bearing (sometimes referred to as forward azimuth) which if followed in a straight line along a great-circle arc will take you from the start point to the end point (in degrees).
bearing(float $latitude1, float $longitude1, float $latitude2, float $longitude2) : float
Parameters
- $latitude1 : float
-
The first latitude coordinate in degrees.
- $longitude1 : float
-
The first longitude coordinate in degrees.
- $latitude2 : float
-
The second latitude coordinate in degrees.
- $longitude2 : float
-
The second longitude coordinate in degrees.
Tags
Return values
float —The bearing in degrees from North.