[][src]Function cdshealpix::largest_center_to_vertex_distance

pub fn largest_center_to_vertex_distance(depth: u8, lon: f64, lat: f64) -> f64

All types that implement Write get methods defined in WriteBytesExt for free. Returns an upper limit on the distance between a cell center around the given position and its furthest vertex.

Params

  • depth the depth of the cell
  • lon the longitude of the point on the unit-sphere, in radians
  • lat the latitude of the point on the unit-sphere, in radians

Result

The following plot shows, for the depth 8, the real largest distances (in red) and the result of this method (in blue).
WARNING: the units of (lon, lat) on the plot are degrees, while the distance is in mas
Credit: plot made using TOPCAT CenterToVertexDist