DRange1#

class pyopenms.DRange1#

Bases: object

OpenMS class DRange1

__init__() → None#
__init__(arg: pyopenms.DRange1, /) → None
__init__(min: float, max: float) → None

Methods

__init__()

encloses(position)

Check if position is within this range

isEmpty()

isIntersected(other)

Check if two ranges intersect

maxX()

Returns the maximum x coordinate (same as getMax for 1D)

minX()

Returns the minimum x coordinate (same as getMin for 1D)

setMaxX(c)

Sets the maximum x coordinate

setMinX(c)

Sets the minimum x coordinate

united(other)

Returns the union of this range with another

encloses(position: float) → bool#

Check if position is within this range

isEmpty() → bool#
isIntersected(other: pyopenms.DRange1) → bool#

Check if two ranges intersect

maxX() → float#

Returns the maximum x coordinate (same as getMax for 1D)

minX() → float#

Returns the minimum x coordinate (same as getMin for 1D)

setMaxX(c: float) → None#

Sets the maximum x coordinate

setMinX(c: float) → None#

Sets the minimum x coordinate

united(other: pyopenms.DRange1) → pyopenms.DRange1#

Returns the union of this range with another