PHP Class Location\Polyline

Author: Marcus Jaschen ([email protected])
Inheritance: implements location\GeometryInterface
Afficher le fichier Open project: mjaschen/phpgeo Class Usage Examples

Protected Properties

Свойство Type Description
$points array

Méthodes publiques

Méthode Description
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

Method Details

addPoint() public méthode

public addPoint ( Coordinate $point )
$point Coordinate

format() public méthode

public format ( Location\Formatter\Polyline\FormatterInterface $formatter ) : mixed
$formatter Location\Formatter\Polyline\FormatterInterface
Résultat mixed

getLength() public méthode

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

getNumberOfPoints() public méthode

public getNumberOfPoints ( ) : integer
Résultat integer

getPoints() public méthode

public getPoints ( ) : array
Résultat array

getReverse() public méthode

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

getSegments() public méthode

public getSegments ( ) : array
Résultat array

Property Details

$points protected_oe property

protected array $points
Résultat array