lsst.sphgeom gdcc65144bf+d801c9999e
Loading...
Searching...
No Matches
lsst::sphgeom::Interval1d Class Reference

#include <Interval1d.h>

Inheritance diagram for lsst::sphgeom::Interval1d:
lsst::sphgeom::Interval< Interval1d, double >

Public Member Functions

 Interval1d (double x)
 Interval1d (double x, double y)
 Interval1d (Base const &base)
bool isFull () const
 isFull returns true if this interval = ℝ.
Public Member Functions inherited from lsst::sphgeom::Interval< Interval1d, double >
 Interval ()
 This constructor creates an empty interval.
 Interval (double x)
 This constructor creates a closed interval containing only x.
 Interval (double x, double y)
 This constructor creates an interval from the given endpoints.
bool operator== (Interval const &i) const
bool operator!= (Interval const &i) const
bool operator== (double x) const
 A closed interval is equal to a point x if both endpoints equal x.
bool operator!= (double x) const
double getA () const
double getB () const
bool isEmpty () const
 isEmpty returns true if this interval does not contain any points.
double getCenter () const
double getSize () const
IntervaldilateBy (double x)
IntervalerodeBy (double x)
Interval1d dilatedBy (double x) const
Interval1d erodedBy (double x) const
bool contains (double x) const
bool contains (Interval const &x) const
bool isDisjointFrom (double x) const
bool isDisjointFrom (Interval const &x) const
bool intersects (double x) const
bool intersects (Interval const &x) const
bool isWithin (double x) const
bool isWithin (Interval const &x) const
Relationship relate (double x) const
Relationship relate (Interval const &x) const
IntervalclipTo (double x)
IntervalclipTo (Interval const &x)
Interval1d clippedTo (double x) const
Interval1d clippedTo (Interval const &x) const
IntervalexpandTo (double x)
IntervalexpandTo (Interval const &x)
Interval1d expandedTo (double x) const
Interval1d expandedTo (Interval const &x) const

Static Public Member Functions

static Interval1d empty ()
static Interval1d full ()

Detailed Description

Interval1d represents closed intervals of ℝ. It can represent both empty and full intervals, as well as single points.


The documentation for this class was generated from the following file: