23 #ifndef LSST_SPHGEOM_HTMPIXELIZATION_H_ 24 #define LSST_SPHGEOM_HTMPIXELIZATION_H_ 58 static int level(uint64_t i);
87 return RangeSet(static_cast<uint64_t>(8) << 2 * _level,
88 static_cast<uint64_t>(16) << 2 * _level);
108 #endif // LSST_SPHGEOM_HTMPIXELIZATION_H_ HtmPixelization(int level)
This constructor creates an HTM pixelization of the sphere with the given subdivision level...
std::string toString(uint64_t i) const override
toString converts the given pixel index to a human-readable string.
static constexpr int MAX_LEVEL
MAX_LEVEL is the maximum supported HTM subdivision level.
static int level(uint64_t i)
level returns the subdivision level of the given HTM index.
static std::string asString(uint64_t i)
asString converts the given HTM index to a human readable string.
RangeSet universe() const override
universe returns the set of all pixel indexes for this pixelization.
A base class for image defects.
Region is a minimal interface for 2-dimensional regions on the unit sphere.
A Pixelization (or partitioning) of the sphere is a mapping between points on the sphere and a set of...
ConvexPolygon is a closed convex polygon on the unit sphere.
A RangeSet is a set of unsigned 64 bit integers.
HtmPixelization provides HTM indexing of points and regions.
uint64_t index(UnitVector3d const &) const override
index computes the index of the pixel for v.
int getLevel() const
getLevel returns the subdivision level of this pixelization.
UnitVector3d is a unit vector in ℝ³ with components stored in double precision.
This file defines an interface for pixelizations of the sphere.
static ConvexPolygon triangle(uint64_t i)
triangle returns the triangle corresponding to the given HTM index.
This file declares a class for representing convex polygons with great circle edges on the unit spher...
std::unique_ptr< Region > pixel(uint64_t i) const override
pixel returns the spherical region corresponding to the pixel with index i.