PHP Класс League\Geotools\Vertex\Vertex

Автор: Antoine Corcy ([email protected])
Наследование: extends League\Geotools\AbstractGeotools, implements League\Geotools\Vertex\VertexInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$gradient integer
$ordinateIntercept integer

Открытые методы

Метод Описание
destination ( integer $bearing, integer $distance ) : League\Geotools\Coordinate\CoordinateInterface Returns the destination point with a given bearing in degrees travelling along a (shortest distance) great circle arc and a distance in meters.
finalBearing ( ) : float Returns the final bearing from the origin coordinate to the destination coordinate in degrees.
finalCardinal ( ) : string Returns the final cardinal point / direction from the origin coordinate to the destination coordinate.
getFrom ( ) {@inheritDoc}
getGradient ( ) {@inheritDoc}
getOrdinateIntercept ( ) {@inheritDoc}
getOtherCoordinate ( League\Geotools\Coordinate\CoordinateInterface $coordinate ) : null | Coordinate Returns the other coordinate who is not the coordinate passed on argument
getPrecision ( ) : integer
getTo ( ) {@inheritDoc}
initialBearing ( ) : float Returns the initial bearing from the origin coordinate to the destination coordinate in degrees.
initialCardinal ( ) : string Returns the initial cardinal point / direction from the origin coordinate to the destination coordinate.
isOnSameLine ( Vertex $vertex ) : boolean Returns true if the vertex passed on argument is on the same line as this object
middle ( ) : League\Geotools\Coordinate\CoordinateInterface Returns the half-way point / coordinate along a great circle path between the origin and the destination coordinates.
setFrom ( League\Geotools\Coordinate\CoordinateInterface $from ) {@inheritDoc}
setPrecision ( integer $precision )
setTo ( League\Geotools\Coordinate\CoordinateInterface $to ) {@inheritDoc}

Описание методов

destination() публичный Метод

Returns the destination point with a given bearing in degrees travelling along a (shortest distance) great circle arc and a distance in meters.
public destination ( integer $bearing, integer $distance ) : League\Geotools\Coordinate\CoordinateInterface
$bearing integer The bearing of the origin in degrees.
$distance integer The distance from the origin in meters.
Результат League\Geotools\Coordinate\CoordinateInterface

finalBearing() публичный Метод

Returns the final bearing from the origin coordinate to the destination coordinate in degrees.
public finalBearing ( ) : float
Результат float The final bearing in degrees

finalCardinal() публичный Метод

Returns the final cardinal point / direction from the origin coordinate to the destination coordinate.
См. также: http://en.wikipedia.org/wiki/Cardinal_direction
public finalCardinal ( ) : string
Результат string The final cardinal point / direction

getFrom() публичный Метод

{@inheritDoc}
public getFrom ( )

getGradient() публичный Метод

{@inheritDoc}
public getGradient ( )

getOrdinateIntercept() публичный Метод

{@inheritDoc}

getOtherCoordinate() публичный Метод

Returns the other coordinate who is not the coordinate passed on argument
public getOtherCoordinate ( League\Geotools\Coordinate\CoordinateInterface $coordinate ) : null | Coordinate
$coordinate League\Geotools\Coordinate\CoordinateInterface
Результат null | League\Geotools\Coordinate\Coordinate

getPrecision() публичный Метод

public getPrecision ( ) : integer
Результат integer

getTo() публичный Метод

{@inheritDoc}
public getTo ( )

initialBearing() публичный Метод

Returns the initial bearing from the origin coordinate to the destination coordinate in degrees.
public initialBearing ( ) : float
Результат float The initial bearing in degrees

initialCardinal() публичный Метод

Returns the initial cardinal point / direction from the origin coordinate to the destination coordinate.
См. также: http://en.wikipedia.org/wiki/Cardinal_direction
public initialCardinal ( ) : string
Результат string The initial cardinal point / direction

isOnSameLine() публичный Метод

Returns true if the vertex passed on argument is on the same line as this object
public isOnSameLine ( Vertex $vertex ) : boolean
$vertex Vertex The vertex to compare
Результат boolean

middle() публичный Метод

Returns the half-way point / coordinate along a great circle path between the origin and the destination coordinates.
public middle ( ) : League\Geotools\Coordinate\CoordinateInterface
Результат League\Geotools\Coordinate\CoordinateInterface

setFrom() публичный Метод

{@inheritDoc}
public setFrom ( League\Geotools\Coordinate\CoordinateInterface $from )
$from League\Geotools\Coordinate\CoordinateInterface

setPrecision() публичный Метод

public setPrecision ( integer $precision )
$precision integer

setTo() публичный Метод

{@inheritDoc}
public setTo ( League\Geotools\Coordinate\CoordinateInterface $to )
$to League\Geotools\Coordinate\CoordinateInterface

Описание свойств

$gradient защищенное свойство

protected int $gradient
Результат integer

$ordinateIntercept защищенное свойство

protected int $ordinateIntercept
Результат integer