Static Methods
(static) measureLenBetween(c1, c2) [source]
Measure the length between 2 coordinates.
Parameter | Type | Description |
---|---|---|
c1
|
Coordinate | |
c2
|
Coordinate |
Returns:
Number:(static) measureArea(coordinates) [source]
Measure the area closed by the given coordinates.
Parameter | Type | Description |
---|---|---|
coordinates
|
Array.<Coordinate> |
Returns:
number:(static) locate(c, xDist, yDist, outopt) [source]
Locate a coordinate from the given source coordinate with a x-axis distance and a y-axis distance.
Parameter | Type | Default | Description |
---|---|---|---|
c
|
Coordinate | source coordinate | |
xDist
|
Number | x-axis distance | |
yDist
|
Number | y-axis distance | |
out
opt
|
Point | null | optional object to receive result |
Returns:
Coordinate:(static) 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 |
Returns:
Coordinate:Methods
(mixin) measureLength(c1, c2) [source]
Measure length between coordinate c1 and coordinate c2
Parameter | Type | Description |
---|---|---|
c1
|
coordinate | coordinate |
c2
|
coordinate | coordinate |