API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class LonLat

Package | org.openscales.core.basetypes
Class | public class LonLat

This class represents a longitude and latitude pair.

Public Properties

| Property | Defined by
--- | --- | ---
|  | lat : Number | LonLat
|  | lon : Number | LonLat

Public Methods

| Method | Defined by
--- | --- | ---
|  | LonLat(lon:Number, lat:Number) | LonLat
|  | add(lon:Number, lat:Number):LonLat | LonLat
|  | clone():LonLat | LonLat
|  | equals(ll:LonLat):Boolean | LonLat
|  | fromString(str:String):LonLat | LonLat
|  | toShortString():String | LonLat
|  | toString():String | LonLat
|  | transform(source:ProjProjection, dest:ProjProjection):void Reprojection method => this method will convert the lonlat from source projection to dest projection. | LonLat

Property detail

lat | property

`lat:Number` [read-write]Implementation
`public function get lat():Number`
`public function set lat(value:Number):void`

lon | property |

`lon:Number` [read-write]Implementation
`public function get lon():Number`
`public function set lon(value:Number):void`
Constructor detail

LonLat | () | constructor

`public function LonLat(lon:Number, lat:Number)`Parameters

| `lon:Number`
| `lat:Number`

Method detail

add | () | method

`public function add(lon:Number, lat:Number):LonLat` Parameters

| `lon:Number`
| `lat:Number`

Returns

| `LonLat`

clone | () | method |

`public function clone():LonLat`

Returns

| `LonLat`

equals | () | method |

`public function equals(ll:LonLat):Boolean` Parameters

| `ll:LonLat`

Returns

| `Boolean`

fromString | () | method |

`public function fromString(str:String):LonLat` Parameters

| `str:String`

Returns

| `LonLat`

toShortString | () | method |

`public function toShortString():String`

Returns

| `String`

toString | () | method |

`public function toString():String`

Returns

| `String`

transform | () | method |

`public function transform(source:ProjProjection, dest:ProjProjection):void`

Reprojection method => this method will convert the lonlat from source projection to dest projection.

Parameters

| `source:ProjProjection` — Source projection
| `dest:ProjProjection` — Destination projection