mirror of https://github.com/tidwall/tile38.git
Update comment
This commit is contained in:
parent
fe6e3863ba
commit
042582aef3
|
@ -816,7 +816,9 @@ func pointRectDistGeodeticRad(φq, λq, φl, λl, φh, λh float64) float64 {
|
||||||
return distRad(φl, λl, φq, λq)
|
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
|
if φl <= φq && φq <= φh { // Inside
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue