Members
(static, constant) code :String
"EPSG:4490", Code of the projection
Type:
- String
(constant) code :String
"EPSG:4326", Code of the projection
Type:
- String
Mixes From:
Methods
(mixin) measureLenBetween(c1, c2) [source]
Measure the length between 2 coordinates.
Parameter | Type | Description |
---|---|---|
c1
|
Coordinate | |
c2
|
Coordinate |
Mixes From:
Returns:
Number:(mixin) measureArea(coordinates) [source]
Measure the area closed by the given coordinates.
Parameter | Type | Description |
---|---|---|
coordinates
|
Array.<Coordinate> |
Mixes From:
Returns:
number:(mixin) locate(c, xDist, yDist) [source]
Locate a coordinate from the given source coordinate with a x-axis distance and a y-axis distance.
Parameter | Type | Description |
---|---|---|
c
|
Coordinate | source coordinate |
xDist
|
Number | x-axis distance |
yDist
|
Number | y-axis distance |
Mixes From:
Returns:
Coordinate:(mixin) rotate(c, pivot, angle) [source]
Rotate a coordinate of given angle around pivot
Parameter | Type | Description |
---|---|---|
c
|
Coordinate | source coordinate |
pivot
|
Coordinate | pivot |
angle
|
Number | angle in degree |