LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
|
Interval1d
represents closed intervals of ℝ.
More...
#include <Interval1d.h>
Public Member Functions | |
Interval1d () | |
Interval1d (double x) | |
Interval1d (double x, double y) | |
Interval1d (Base const &base) | |
bool | isFull () const |
isFull returns true if this interval = ℝ. | |
bool | operator== (Interval const &i) const |
Two closed intervals are equal if their endpoints are the same, or both are empty. | |
bool | operator== (double x) const |
A closed interval is equal to a point x if both endpoints equal x. | |
bool | operator!= (Interval const &i) const |
bool | operator!= (double x) const |
double | getA () const |
getA returns the lower endpoint of this interval. | |
double | getB () const |
getB returns the upper endpoint of this interval. | |
bool | isEmpty () const |
isEmpty returns true if this interval does not contain any points. | |
double | getCenter () const |
getCenter returns the center of this interval. | |
double | getSize () const |
getSize returns the size (length, width) of this interval. | |
Interval & | dilateBy (double x) |
For positive x, dilateBy morphologically dilates this interval by [-x,x], which is equivalent to the taking the Minkowski sum with [-x,x]. | |
Interval & | erodeBy (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 |
Interval & | clipTo (double x) |
Interval & | clipTo (Interval const &x) |
Interval1d | clippedTo (double x) const |
Interval1d | clippedTo (Interval const &x) const |
Interval & | expandTo (double x) |
Interval & | expandTo (Interval const &x) |
Interval1d | expandedTo (double x) const |
Interval1d | expandedTo (Interval const &x) const |
Static Public Member Functions | |
static Interval1d | empty () |
static Interval1d | full () |
Interval1d
represents closed intervals of ℝ.
It can represent both empty and full intervals, as well as single points.
Definition at line 47 of file Interval1d.h.
|
inline |
Definition at line 61 of file Interval1d.h.
|
inlineexplicit |
Definition at line 63 of file Interval1d.h.
|
inline |
Definition at line 65 of file Interval1d.h.
|
inline |
Definition at line 67 of file Interval1d.h.
|
inlineinherited |
clippedTo
returns the intersection of this interval and x.
Definition at line 190 of file Interval.h.
|
inlineinherited |
clippedTo
returns the intersection of this interval and x.
Definition at line 192 of file Interval.h.
|
inlineinherited |
clipTo
shrinks this interval until all its points are in x.
Definition at line 166 of file Interval.h.
|
inlineinherited |
clipTo
shrinks this interval until all its points are in x.
Definition at line 177 of file Interval.h.
|
inlineinherited |
contains
returns true if the intersection of this interval and x is equal to x.
Definition at line 105 of file Interval.h.
|
inlineinherited |
contains
returns true if the intersection of this interval and x is equal to x.
Definition at line 109 of file Interval.h.
|
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.
|
inlineinherited |
Definition at line 246 of file Interval.h.
|
inlinestatic |
Definition at line 51 of file Interval1d.h.
|
inlineinherited |
Definition at line 245 of file Interval.h.
|
inlineinherited |
Definition at line 247 of file Interval.h.
|
inlineinherited |
expandedTo
returns the smallest interval containing the union of this interval and x.
Definition at line 225 of file Interval.h.
|
inlineinherited |
expandedTo
returns the smallest interval containing the union of this interval and x.
Definition at line 227 of file Interval.h.
|
inlineinherited |
expandTo
minimally expands this interval to contain x.
Definition at line 199 of file Interval.h.
|
inlineinherited |
expandTo
minimally expands this interval to contain x.
Definition at line 211 of file Interval.h.
|
inlinestatic |
Definition at line 55 of file Interval1d.h.
|
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.
|
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.
|
inlineinherited |
getCenter
returns the center of this interval.
It is arbitrary for empty intervals.
Definition at line 96 of file Interval.h.
|
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.
|
inlineinherited |
intersects
returns true if the intersection of this interval and x is non-empty.
Definition at line 137 of file Interval.h.
|
inlineinherited |
intersects
returns true if the intersection of this interval and x is non-empty.
Definition at line 139 of file Interval.h.
|
inlineinherited |
isDisjointFrom
returns true if the intersection of this interval and x is empty.
Definition at line 122 of file Interval.h.
|
inlineinherited |
isDisjointFrom
returns true if the intersection of this interval and x is empty.
Definition at line 126 of file Interval.h.
|
inlineinherited |
isEmpty
returns true if this interval does not contain any points.
Definition at line 90 of file Interval.h.
|
inline |
isFull
returns true if this interval = ℝ.
Definition at line 70 of file Interval1d.h.
|
inlineinherited |
isWithin
returns true if the intersection of this interval and x is this interval.
Definition at line 147 of file Interval.h.
|
inlineinherited |
isWithin
returns true if the intersection of this interval and x is this interval.
Definition at line 151 of file Interval.h.
|
inlineinherited |
Definition at line 79 of file Interval.h.
|
inlineinherited |
Definition at line 72 of file Interval.h.
|
inlineinherited |
A closed interval is equal to a point x if both endpoints equal x.
Definition at line 75 of file Interval.h.
|
inlineinherited |
Two closed intervals are equal if their endpoints are the same, or both are empty.
Definition at line 68 of file Interval.h.
|
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.
|
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.