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:
Arne Neumann 2018-06-06 09:29:24 +02:00 committed by GitHub
parent a0c94bc810
commit 9a26e6d5a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import "fmt"
// Point is simple 2D point
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