PHP 클래스 League\Geotools\Vertex\Vertex

저자: Antoine Corcy ([email protected])
상속: extends League\Geotools\AbstractGeotools, implements League\Geotools\Vertex\VertexInterface
파일 보기 프로젝트 열기: toin0u/geotools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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