Méthode |
Description |
|
__construct ( Coordinate $point1, Coordinate $point2 ) |
|
|
getBearing ( Location\Bearing\BearingInterface $bearingCalculator ) : float |
|
|
getFinalBearing ( Location\Bearing\BearingInterface $bearingCalculator ) : float |
|
|
getLength ( Location\Distance\DistanceInterface $calculator ) : float |
Calculates the length of the line (distance between the two
coordinates). |
|
getPoint1 ( ) : Coordinate |
|
|
getPoint2 ( ) : Coordinate |
|
|
getPoints ( ) : array |
Returns an array containing the two points. |
|
getReverse ( ) : Line |
Create a new instance with reversed point order, i. e. reversed direction. |
|
setPoint1 ( Coordinate $point1 ) |
|
|
setPoint2 ( Coordinate $point2 ) |
|
|