PHP 클래스 Location\Polyline

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

보호된 프로퍼티들

프로퍼티 타입 설명
$points array

공개 메소드들

메소드 설명
addPoint ( Coordinate $point )
format ( Location\Formatter\Polyline\FormatterInterface $formatter ) : mixed
getLength ( Location\Distance\DistanceInterface $calculator ) : float Calculates the length of the polyline.
getNumberOfPoints ( ) : integer
getPoints ( ) : array
getReverse ( ) : Polyline Create a new polyline with reversed order of points, i. e. reversed polyline direction.
getSegments ( ) : array

메소드 상세

addPoint() 공개 메소드

public addPoint ( Coordinate $point )
$point Coordinate

format() 공개 메소드

public format ( Location\Formatter\Polyline\FormatterInterface $formatter ) : mixed
$formatter Location\Formatter\Polyline\FormatterInterface
리턴 mixed

getLength() 공개 메소드

Calculates the length of the polyline.
public getLength ( Location\Distance\DistanceInterface $calculator ) : float
$calculator Location\Distance\DistanceInterface instance of distance calculation class
리턴 float

getNumberOfPoints() 공개 메소드

public getNumberOfPoints ( ) : integer
리턴 integer

getPoints() 공개 메소드

public getPoints ( ) : array
리턴 array

getReverse() 공개 메소드

Create a new polyline with reversed order of points, i. e. reversed polyline direction.
public getReverse ( ) : Polyline
리턴 Polyline

getSegments() 공개 메소드

public getSegments ( ) : array
리턴 array

프로퍼티 상세

$points 보호되어 있는 프로퍼티

protected array $points
리턴 array