IntervalI

class lsst.geom.IntervalI

Bases: pybind11_object

Attributes Summary

begin

end

max

min

size

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.

Returns:
pointsnumpy.ndarray

1-d array with size == self.size containing points.

clippedTo(self: lsst.geom.IntervalI, arg0: lsst.geom.IntervalI) lsst.geom.IntervalI
contains(*args, **kwargs)

Overloaded function.

  1. contains(self: lsst.geom.IntervalI, arg0: lsst.geom.IntervalI) -> bool

  2. 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.

  1. expandedTo(self: lsst.geom.IntervalI, arg0: int) -> lsst.geom.IntervalI

  2. expandedTo(self: lsst.geom.IntervalI, arg0: lsst.geom.IntervalI) -> lsst.geom.IntervalI

static fromSpannedPoints(*args, **kwargs)

Overloaded function.

  1. fromSpannedPoints(arg0: numpy.ndarray) -> lsst.geom.IntervalI

  2. 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:
rangerange

Range instance that can be used to iterate over all points in the interval.

reflectedAbout(self: lsst.geom.IntervalI, arg0: int) lsst.geom.IntervalI
shiftedBy(self: lsst.geom.IntervalI, arg0: int) lsst.geom.IntervalI
slice()

Return a slice object corresponding to the interval’s points.

Returns:
sliceslice

Slice instance that can be used to select the elements of a container that correspond to the points in the interval.