DRange2#

class pyopenms.DRange2#

Bases: object

Two-dimensional range

__init__() → None#
__init__(arg: pyopenms.DRange2, /) → None
__init__(min_x: float, min_y: float, max_x: float, max_y: float) → None

Methods

__init__()

encloses(x, y)

Check if position is within this range

isEmpty()

Returns true if the range is empty

isIntersected(other)

Check if two ranges intersect

maxX()

maxY()

minX()

minY()

setMaxX(c)

setMaxY(c)

setMinX(c)

setMinY(c)

united(other)

Returns the union of this range with another

encloses(x: float, y: float) → bool#

Check if position is within this range

isEmpty() → bool#

Returns true if the range is empty

isIntersected(other: pyopenms.DRange2) → bool#

Check if two ranges intersect

maxX() → float#
maxY() → float#
minX() → float#
minY() → float#
setMaxX(c: float) → None#
setMaxY(c: float) → None#
setMinX(c: float) → None#
setMinY(c: float) → None#
united(other: pyopenms.DRange2) → pyopenms.DRange2#

Returns the union of this range with another