mirror of https://github.com/tidwall/tile38.git
documentation: Point is [lat lon z]
Every developer trips on lat-lon vs. lon-lat at least once, so it's better to clarify this.
This commit is contained in:
parent
a0c94bc810
commit
9a26e6d5a7
|
@ -5,7 +5,7 @@ import "fmt"
|
||||||
|
|
||||||
// Point is simple 2D point
|
// Point is simple 2D point
|
||||||
type Point struct {
|
type Point struct {
|
||||||
X, Y, Z float64
|
X, Y, Z float64 // X=latitude, Y=longitude, (Z is optional, e.g. for elevation or timestamp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// InsideRect detects point is inside of another rect
|
// InsideRect detects point is inside of another rect
|
||||||
|
|
Loading…
Reference in New Issue