프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$ellipsoid | ValueObjects\Geography\Ellipsoid | ||
$latitude | ValueObjects\Geography\Latitude | ||
$longitude | ValueObjects\Geography\Longitude |
메소드 | 설명 | |
---|---|---|
__construct ( ValueObjects\Geography\Latitude $latitude, ValueObjects\Geography\Longitude $longitude, ValueObjects\Geography\Ellipsoid $ellipsoid = null ) | Returns a new Coordinate object | |
__toString ( ) : string | Returns a native string version of the Coordiantes object in format "$latitude,$longitude" | |
distanceFrom ( |
Calculates the distance between two Coordinate objects | |
fromNative ( ) : self | Returns a new Coordinate object from native PHP arguments | |
getEllipsoid ( ) : ValueObjects\Geography\Ellipsoid | Returns ellipsoid | |
getLatitude ( ) : ValueObjects\Geography\Latitude | Returns latitude | |
getLongitude ( ) : ValueObjects\Geography\Longitude | Returns longitude | |
sameValueAs ( ValueObjects\ValueObjectInterface $coordinate ) : boolean | Tells whether tow Coordinate objects are equal | |
toDecimalMinutes ( ) : ValueObjects\StringLiteral\StringLiteral | Returns a decimal minutes representation of the coordinate | |
toDegreesMinutesSeconds ( ) : ValueObjects\StringLiteral\StringLiteral | Returns a degrees/minutes/seconds representation of the coordinate | |
toUniversalTransverseMercator ( ) : ValueObjects\StringLiteral\StringLiteral | Returns a Universal Transverse Mercator projection representation of the coordinate in meters |
메소드 | 설명 | |
---|---|---|
getBaseCoordinate ( self $coordinate ) : |
Returns the underlying Coordinate object |
public __construct ( ValueObjects\Geography\Latitude $latitude, ValueObjects\Geography\Longitude $longitude, ValueObjects\Geography\Ellipsoid $ellipsoid = null ) | ||
$latitude | ValueObjects\Geography\Latitude | |
$longitude | ValueObjects\Geography\Longitude | |
$ellipsoid | ValueObjects\Geography\Ellipsoid |
public __toString ( ) : string | ||
리턴 | string |
public distanceFrom ( |
||
$coordinate | ||
$unit | ValueObjects\Geography\DistanceUnit | |
$formula | ValueObjects\Geography\DistanceFormula | |
리턴 | ValueObjects\Number\Real |
public static fromNative ( ) : self | ||
리턴 | self |
protected static getBaseCoordinate ( self $coordinate ) : |
||
$coordinate | self | |
리턴 |
public getEllipsoid ( ) : ValueObjects\Geography\Ellipsoid | ||
리턴 | ValueObjects\Geography\Ellipsoid |
public getLatitude ( ) : ValueObjects\Geography\Latitude | ||
리턴 | ValueObjects\Geography\Latitude |
public getLongitude ( ) : ValueObjects\Geography\Longitude | ||
리턴 | ValueObjects\Geography\Longitude |
public sameValueAs ( ValueObjects\ValueObjectInterface $coordinate ) : boolean | ||
$coordinate | ValueObjects\ValueObjectInterface | |
리턴 | boolean |
public toDecimalMinutes ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
public toDegreesMinutesSeconds ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
public toUniversalTransverseMercator ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
protected Ellipsoid,ValueObjects\Geography $ellipsoid | ||
리턴 | ValueObjects\Geography\Ellipsoid |
protected Latitude,ValueObjects\Geography $latitude | ||
리턴 | ValueObjects\Geography\Latitude |