PHP Класс Location\Polyline

Автор: Marcus Jaschen ([email protected])
Наследование: implements location\GeometryInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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