Update comment

This commit is contained in:
Mike Poindexter 2020-04-08 11:38:12 -07:00
parent fe6e3863ba
commit 042582aef3
1 changed files with 3 additions and 1 deletions

View File

@ -816,7 +816,9 @@ func pointRectDistGeodeticRad(φq, λq, φl, λl, φh, λh float64) float64 {
return distRad(φl, λl, φq, λq)
}
if λl <= λq && λq <= λh { // q is north or south of r
if λl <= λq && λq <= λh {
// q is between the bounding meridians of r
// hence, q is north, south or within r
if φl <= φq && φq <= φh { // Inside
return 0
}