IntervalI¶
- class lsst.geom.IntervalI¶
Bases:
pybind11_object
Attributes Summary
Methods Summary
arange
([dtype])Return an array containing all points in the interval.
clippedTo
(self, arg0)contains
(*args, **kwargs)Overloaded function.
dilatedBy
(self, arg0)erodedBy
(self, arg0)expandedTo
(*args, **kwargs)Overloaded function.
fromSpannedPoints
(*args, **kwargs)Overloaded function.
getBegin
(self)getEnd
(self)getMax
(self)getMin
(self)getSize
(self)intersects
(self, arg0)isDisjointFrom
(self, arg0)isEmpty
(self)overlaps
(self, arg0)range
()Return a
range
object containing all points in the interval.reflectedAbout
(self, arg0)shiftedBy
(self, arg0)slice
()Return a
slice
object corresponding to the interval's points.Attributes Documentation
- begin¶
- end¶
- max¶
- min¶
- size¶
Methods Documentation
- arange(dtype=<class 'numpy.int32'>)¶
Return an array containing all points in the interval.
- Parameters:
- dtypeconvertible to
numpy.dtype
The data type of the returned arrays.
- dtypeconvertible to
- Returns:
- points
numpy.ndarray
1-d array with
size == self.size
containing points.
- points
- clippedTo(self: lsst.geom.IntervalI, arg0: lsst.geom.IntervalI) lsst.geom.IntervalI ¶
- contains(*args, **kwargs)¶
Overloaded function.
contains(self: lsst.geom.IntervalI, arg0: lsst.geom.IntervalI) -> bool
contains(self: lsst.geom.IntervalI, arg0: numpy.ndarray[numpy.int32]) -> object
- dilatedBy(self: lsst.geom.IntervalI, arg0: int) lsst.geom.IntervalI ¶
- erodedBy(self: lsst.geom.IntervalI, arg0: int) lsst.geom.IntervalI ¶
- expandedTo(*args, **kwargs)¶
Overloaded function.
expandedTo(self: lsst.geom.IntervalI, arg0: int) -> lsst.geom.IntervalI
expandedTo(self: lsst.geom.IntervalI, arg0: lsst.geom.IntervalI) -> lsst.geom.IntervalI
- static fromSpannedPoints(*args, **kwargs)¶
Overloaded function.
fromSpannedPoints(arg0: numpy.ndarray) -> lsst.geom.IntervalI
fromSpannedPoints(arg0: List[int]) -> lsst.geom.IntervalI
- getBegin(self: lsst.geom.IntervalI) int ¶
- getEnd(self: lsst.geom.IntervalI) int ¶
- getMax(self: lsst.geom.IntervalI) int ¶
- getMin(self: lsst.geom.IntervalI) int ¶
- getSize(self: lsst.geom.IntervalI) int ¶
- intersects(self: lsst.geom.IntervalI, arg0: lsst.geom.IntervalI) bool ¶
- isDisjointFrom(self: lsst.geom.IntervalI, arg0: lsst.geom.IntervalI) bool ¶
- isEmpty(self: lsst.geom.IntervalI) bool ¶
- overlaps(self: lsst.geom.IntervalI, arg0: lsst.geom.IntervalI) bool ¶
- range()¶
Return a
range
object containing all points in the interval.- Returns:
- range
range
Range instance that can be used to iterate over all points in the interval.
- range
- reflectedAbout(self: lsst.geom.IntervalI, arg0: int) lsst.geom.IntervalI ¶
- shiftedBy(self: lsst.geom.IntervalI, arg0: int) lsst.geom.IntervalI ¶