LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
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_
A Pixelization (or partitioning) of the sphere is a mapping between points on the sphere and a set of...
Region is a minimal interface for 2-dimensional regions on the unit sphere.
RangeSet universe() const override
universe returns the set of all pixel indexes for this pixelization.
static int level(uint64_t i)
level returns the subdivision level of the given HTM index.
uint64_t index(UnitVector3d const &) const override
index computes the index of the pixel for v.
std::string toString(uint64_t i) const override
toString converts the given pixel index to a human-readable string.
HtmPixelization provides HTM indexing of points and regions.
UnitVector3d is a unit vector in ℝ³ with components stored in double precision.
ConvexPolygon is a closed convex polygon on the unit sphere.
int getLevel() const
getLevel returns the subdivision level of this pixelization.
static std::string asString(uint64_t i)
asString converts the given HTM index to a human readable string.
static ConvexPolygon triangle(uint64_t i)
triangle returns the triangle corresponding to the given HTM index.
A base class for image defects.
std::unique_ptr< Region > pixel(uint64_t i) const override
pixel returns the spherical region corresponding to the pixel with index i.
HtmPixelization(int level)
This constructor creates an HTM pixelization of the sphere with the given subdivision level.
static constexpr int MAX_LEVEL
MAX_LEVEL is the maximum supported HTM subdivision level.
A RangeSet is a set of unsigned 64 bit integers.
This file defines an interface for pixelizations of the sphere.
This file declares a class for representing convex polygons with great circle edges on the unit spher...