PHP 클래스 Location\Bearing\BearingSpherical

저자: Marcus Jaschen ([email protected])
상속: implements Location\Bearing\BearingInterface
파일 보기 프로젝트 열기: mjaschen/phpgeo 1 사용 예제들

공개 메소드들

메소드 설명
calculateBearing ( Coordinate $point1, Coordinate $point2 ) : float This method calculates the initial bearing between the two points.
calculateDestination ( Coordinate $point, float $bearing, float $distance ) : Coordinate Calculates a destination point for the given point, bearing angle, and distance.
calculateFinalBearing ( Coordinate $point1, Coordinate $point2 ) : float Calculates the final bearing between the two points.

메소드 상세

calculateBearing() 공개 메소드

This method calculates the initial bearing between the two points.
public calculateBearing ( Coordinate $point1, Coordinate $point2 ) : float
$point1 Location\Coordinate
$point2 Location\Coordinate
리턴 float Bearing Angle

calculateDestination() 공개 메소드

Calculates a destination point for the given point, bearing angle, and distance.
public calculateDestination ( Coordinate $point, float $bearing, float $distance ) : Coordinate
$point Location\Coordinate
$bearing float the bearing angle between 0 and 360 degrees
$distance float the distance to the destination point in meters
리턴 Location\Coordinate

calculateFinalBearing() 공개 메소드

Calculates the final bearing between the two points.
public calculateFinalBearing ( Coordinate $point1, Coordinate $point2 ) : float
$point1 Location\Coordinate
$point2 Location\Coordinate
리턴 float