lsst.sphgeom
21.0.0+4fcf437b75
|
Go to the documentation of this file.
23 #ifndef LSST_SPHGEOM_REGION_H_
24 #define LSST_SPHGEOM_REGION_H_
84 virtual std::unique_ptr<Region>
clone()
const = 0;
125 virtual std::vector<uint8_t>
encode()
const = 0;
129 static std::unique_ptr<Region>
decode(std::vector<uint8_t>
const & s) {
130 return decode(s.data(), s.size());
133 static std::unique_ptr<Region>
decode(uint8_t
const * buffer,
size_t n);
139 #endif // LSST_SPHGEOM_REGION_H_
static std::unique_ptr< Region > decode(std::vector< uint8_t > const &s)
Definition: Region.h:129
Definition: ConvexPolygon.h:57
virtual bool contains(UnitVector3d const &) const =0
contains tests whether the given unit vector is inside this region.
Definition: Ellipse.h:169
std::bitset< 3 > Relationship
Relationship describes how two sets are related.
Definition: Relationship.h:35
This file provides a type alias for describing set relationships.
virtual Circle getBoundingCircle() const =0
getBoundingCircle returns a bounding-circle for this region.
virtual Relationship relate(Region const &) const =0
virtual Box getBoundingBox() const =0
getBoundingBox returns a bounding-box for this region.
Definition: UnitVector3d.h:55
virtual std::vector< uint8_t > encode() const =0
virtual std::unique_ptr< Region > clone() const =0
clone returns a deep copy of this region.
virtual Box3d getBoundingBox3d() const =0
getBoundingBox3d returns a 3-dimensional bounding-box for this region.