LSST Applications g063fba187b+cac8b7c890,g0f08755f38+6aee506743,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+b4475c5878,g1dcb35cd9c+8f9bc1652e,g20f6ffc8e0+6aee506743,g217e2c1bcf+73dee94bd0,g28da252d5a+1f19c529b9,g2bbee38e9b+3f2625acfc,g2bc492864f+3f2625acfc,g3156d2b45e+6e55a43351,g32e5bea42b+1bb94961c2,g347aa1857d+3f2625acfc,g35bb328faa+a8ce1bb630,g3a166c0a6a+3f2625acfc,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+8a9e676b2a,g7af13505b9+809c143d88,g80478fca09+6ef8b1810f,g82479be7b0+f568feb641,g858d7b2824+6aee506743,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+2903d499ea,gb58c049af0+d64f4d3760,gc28159a63d+3f2625acfc,gcab2d0539d+b12535109e,gcf0d15dbbd+46a3f46ba9,gda6a2b7d83+46a3f46ba9,gdaeeff99f8+1711a396fd,ge79ae78c31+3f2625acfc,gef2f8181fd+0a71e47438,gf0baf85859+c1f95f4921,gfa517265be+6aee506743,gfa999e8aa5+17cd334064,w.2024.51
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
lsst::sphgeom::AngleInterval Class Reference

AngleInterval represents closed intervals of arbitrary angles. More...

#include <AngleInterval.h>

Inheritance diagram for lsst::sphgeom::AngleInterval:
lsst::sphgeom::Interval< AngleInterval, Angle >

Public Member Functions

 AngleInterval ()
 
 AngleInterval (Angle x)
 
 AngleInterval (Angle x, Angle y)
 
 AngleInterval (Base const &base)
 
bool operator== (Interval const &i) const
 Two closed intervals are equal if their endpoints are the same, or both are empty.
 
bool operator== (Angle x) const
 A closed interval is equal to a point x if both endpoints equal x.
 
bool operator!= (Interval const &i) const
 
bool operator!= (Angle x) const
 
Angle getA () const
 getA returns the lower endpoint of this interval.
 
Angle getB () const
 getB returns the upper endpoint of this interval.
 
bool isEmpty () const
 isEmpty returns true if this interval does not contain any points.
 
Angle getCenter () const
 getCenter returns the center of this interval.
 
Angle getSize () const
 getSize returns the size (length, width) of this interval.
 
IntervaldilateBy (Angle x)
 For positive x, dilateBy morphologically dilates this interval by [-x,x], which is equivalent to the taking the Minkowski sum with [-x,x].
 
IntervalerodeBy (Angle x)
 
AngleInterval dilatedBy (Angle x) const
 
AngleInterval erodedBy (Angle x) const
 
bool contains (Angle x) const
 
bool contains (Interval const &x) const
 
bool isDisjointFrom (Angle x) const
 
bool isDisjointFrom (Interval const &x) const
 
bool intersects (Angle x) const
 
bool intersects (Interval const &x) const
 
bool isWithin (Angle x) const
 
bool isWithin (Interval const &x) const
 
Relationship relate (Angle x) const
 
Relationship relate (Interval const &x) const
 
IntervalclipTo (Angle x)
 
IntervalclipTo (Interval const &x)
 
AngleInterval clippedTo (Angle x) const
 
AngleInterval clippedTo (Interval const &x) const
 
IntervalexpandTo (Angle x)
 
IntervalexpandTo (Interval const &x)
 
AngleInterval expandedTo (Angle x) const
 
AngleInterval expandedTo (Interval const &x) const
 

Static Public Member Functions

static AngleInterval fromDegrees (double x, double y)
 
static AngleInterval fromRadians (double x, double y)
 
static AngleInterval empty ()
 
static AngleInterval full ()
 

Detailed Description

AngleInterval represents closed intervals of arbitrary angles.

Definition at line 47 of file AngleInterval.h.

Constructor & Destructor Documentation

◆ AngleInterval() [1/4]

lsst::sphgeom::AngleInterval::AngleInterval ( )
inline

Definition at line 71 of file AngleInterval.h.

71: Base() {}

◆ AngleInterval() [2/4]

lsst::sphgeom::AngleInterval::AngleInterval ( Angle x)
inlineexplicit

Definition at line 73 of file AngleInterval.h.

73: Base(x) {}

◆ AngleInterval() [3/4]

lsst::sphgeom::AngleInterval::AngleInterval ( Angle x,
Angle y )
inline

Definition at line 75 of file AngleInterval.h.

75: Base(x, y) {}
int y
Definition SpanSet.cc:48

◆ AngleInterval() [4/4]

lsst::sphgeom::AngleInterval::AngleInterval ( Base const & base)
inline

Definition at line 77 of file AngleInterval.h.

77: Base(base) {}

Member Function Documentation

◆ clippedTo() [1/2]

AngleInterval lsst::sphgeom::Interval< AngleInterval , Angle >::clippedTo ( Angle x) const
inlineinherited

clippedTo returns the intersection of this interval and x.

Definition at line 190 of file Interval.h.

◆ clippedTo() [2/2]

AngleInterval lsst::sphgeom::Interval< AngleInterval , Angle >::clippedTo ( Interval< AngleInterval, Angle > const & x) const
inlineinherited

clippedTo returns the intersection of this interval and x.

Definition at line 192 of file Interval.h.

◆ clipTo() [1/2]

Interval & lsst::sphgeom::Interval< AngleInterval , Angle >::clipTo ( Angle x)
inlineinherited

clipTo shrinks this interval until all its points are in x.

Definition at line 166 of file Interval.h.

◆ clipTo() [2/2]

Interval & lsst::sphgeom::Interval< AngleInterval , Angle >::clipTo ( Interval< AngleInterval, Angle > const & x)
inlineinherited

clipTo shrinks this interval until all its points are in x.

Definition at line 177 of file Interval.h.

◆ contains() [1/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::contains ( Angle x) const
inlineinherited

contains returns true if the intersection of this interval and x is equal to x.

Definition at line 105 of file Interval.h.

◆ contains() [2/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::contains ( Interval< AngleInterval, Angle > const & x) const
inlineinherited

contains returns true if the intersection of this interval and x is equal to x.

Definition at line 109 of file Interval.h.

◆ dilateBy()

Interval & lsst::sphgeom::Interval< AngleInterval , Angle >::dilateBy ( Angle x)
inlineinherited

For positive x, dilateBy morphologically dilates this interval by [-x,x], which is equivalent to the taking the Minkowski sum with [-x,x].

For negative x, it morphologically erodes this interval by [x,-x]. If x is zero or NaN, or this interval is empty, there is no effect.

Definition at line 237 of file Interval.h.

◆ dilatedBy()

AngleInterval lsst::sphgeom::Interval< AngleInterval , Angle >::dilatedBy ( Angle x) const
inlineinherited

Definition at line 246 of file Interval.h.

◆ empty()

static AngleInterval lsst::sphgeom::AngleInterval::empty ( )
inlinestatic

Definition at line 61 of file AngleInterval.h.

61 {
62 return AngleInterval();
63 }

◆ erodeBy()

Interval & lsst::sphgeom::Interval< AngleInterval , Angle >::erodeBy ( Angle x)
inlineinherited

Definition at line 245 of file Interval.h.

◆ erodedBy()

AngleInterval lsst::sphgeom::Interval< AngleInterval , Angle >::erodedBy ( Angle x) const
inlineinherited

Definition at line 247 of file Interval.h.

◆ expandedTo() [1/2]

AngleInterval lsst::sphgeom::Interval< AngleInterval , Angle >::expandedTo ( Angle x) const
inlineinherited

expandedTo returns the smallest interval containing the union of this interval and x.

Definition at line 225 of file Interval.h.

◆ expandedTo() [2/2]

AngleInterval lsst::sphgeom::Interval< AngleInterval , Angle >::expandedTo ( Interval< AngleInterval, Angle > const & x) const
inlineinherited

expandedTo returns the smallest interval containing the union of this interval and x.

Definition at line 227 of file Interval.h.

◆ expandTo() [1/2]

Interval & lsst::sphgeom::Interval< AngleInterval , Angle >::expandTo ( Angle x)
inlineinherited

expandTo minimally expands this interval to contain x.

Definition at line 199 of file Interval.h.

◆ expandTo() [2/2]

Interval & lsst::sphgeom::Interval< AngleInterval , Angle >::expandTo ( Interval< AngleInterval, Angle > const & x)
inlineinherited

expandTo minimally expands this interval to contain x.

Definition at line 211 of file Interval.h.

◆ fromDegrees()

static AngleInterval lsst::sphgeom::AngleInterval::fromDegrees ( double x,
double y )
inlinestatic

Definition at line 51 of file AngleInterval.h.

51 {
54 }
static Angle fromDegrees(double a)
Definition Angle.h:56

◆ fromRadians()

static AngleInterval lsst::sphgeom::AngleInterval::fromRadians ( double x,
double y )
inlinestatic

Definition at line 56 of file AngleInterval.h.

56 {
59 }
static Angle fromRadians(double a)
Definition Angle.h:58

◆ full()

static AngleInterval lsst::sphgeom::AngleInterval::full ( )
inlinestatic

◆ getA()

Angle lsst::sphgeom::Interval< AngleInterval , Angle >::getA ( ) const
inlineinherited

getA returns the lower endpoint of this interval.

The return value for empty intervals is arbitrary.

Definition at line 83 of file Interval.h.

◆ getB()

Angle lsst::sphgeom::Interval< AngleInterval , Angle >::getB ( ) const
inlineinherited

getB returns the upper endpoint of this interval.

The return value for empty intervals is arbitrary.

Definition at line 87 of file Interval.h.

◆ getCenter()

Angle lsst::sphgeom::Interval< AngleInterval , Angle >::getCenter ( ) const
inlineinherited

getCenter returns the center of this interval.

It is arbitrary for empty intervals.

Definition at line 96 of file Interval.h.

◆ getSize()

Angle lsst::sphgeom::Interval< AngleInterval , Angle >::getSize ( ) const
inlineinherited

getSize returns the size (length, width) of this interval.

It is zero for single-point intervals, and NaN or negative for empty intervals.

Definition at line 100 of file Interval.h.

◆ intersects() [1/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::intersects ( Angle x) const
inlineinherited

intersects returns true if the intersection of this interval and x is non-empty.

Definition at line 137 of file Interval.h.

◆ intersects() [2/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::intersects ( Interval< AngleInterval, Angle > const & x) const
inlineinherited

intersects returns true if the intersection of this interval and x is non-empty.

Definition at line 139 of file Interval.h.

◆ isDisjointFrom() [1/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::isDisjointFrom ( Angle x) const
inlineinherited

isDisjointFrom returns true if the intersection of this interval and x is empty.

Definition at line 122 of file Interval.h.

◆ isDisjointFrom() [2/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::isDisjointFrom ( Interval< AngleInterval, Angle > const & x) const
inlineinherited

isDisjointFrom returns true if the intersection of this interval and x is empty.

Definition at line 126 of file Interval.h.

◆ isEmpty()

bool lsst::sphgeom::Interval< AngleInterval , Angle >::isEmpty ( ) const
inlineinherited

isEmpty returns true if this interval does not contain any points.

Definition at line 90 of file Interval.h.

◆ isWithin() [1/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::isWithin ( Angle x) const
inlineinherited

isWithin returns true if the intersection of this interval and x is this interval.

Definition at line 147 of file Interval.h.

◆ isWithin() [2/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::isWithin ( Interval< AngleInterval, Angle > const & x) const
inlineinherited

isWithin returns true if the intersection of this interval and x is this interval.

Definition at line 151 of file Interval.h.

◆ operator!=() [1/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::operator!= ( Angle x) const
inlineinherited

Definition at line 79 of file Interval.h.

◆ operator!=() [2/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::operator!= ( Interval< AngleInterval, Angle > const & i) const
inlineinherited

Definition at line 72 of file Interval.h.

◆ operator==() [1/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::operator== ( Angle x) const
inlineinherited

A closed interval is equal to a point x if both endpoints equal x.

Definition at line 75 of file Interval.h.

◆ operator==() [2/2]

bool lsst::sphgeom::Interval< AngleInterval , Angle >::operator== ( Interval< AngleInterval, Angle > const & i) const
inlineinherited

Two closed intervals are equal if their endpoints are the same, or both are empty.

Definition at line 68 of file Interval.h.

◆ relate() [1/2]

Relationship lsst::sphgeom::Interval< AngleInterval , Angle >::relate ( Angle x) const
inherited

relate returns a bitset S describing the spatial relationships between this interval and x. For each relation that holds, the bitwise AND of S and the corresponding Relationship will be non-zero.

Definition at line 160 of file Interval.h.

◆ relate() [2/2]

Relationship lsst::sphgeom::Interval< AngleInterval , Angle >::relate ( Interval< AngleInterval, Angle > const & x) const
inherited

relate returns a bitset S describing the spatial relationships between this interval and x. For each relation that holds, the bitwise AND of S and the corresponding Relationship will be non-zero.

Definition at line 161 of file Interval.h.


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