Point returns the center of the s2 cell on the sphere as a Point. The maximum directional error in Point (compared to the exact mathematical result) is 1.5 * machineEpsilon64 radians, and the maximum length error is 2 * machineEpsilon64 (the same as Normalize).
()
| 377 | // mathematical result) is 1.5 * machineEpsilon64 radians, and the maximum length |
| 378 | // error is 2 * machineEpsilon64 (the same as Normalize). |
| 379 | func (ci CellID) Point() Point { return Point{ci.rawPoint().Normalize()} } |
| 380 | |
| 381 | // LatLng returns the center of the s2 cell on the sphere as a LatLng. |
| 382 | func (ci CellID) LatLng() LatLng { return LatLngFromPoint(Point{ci.rawPoint()}) } |