Welcome to Python-flavored Magnum! Please note that, while already being
rather stable, this functionality is still considered experimental and
some APIs might get changed without preserving full backwards compatibility.
class
Range3DiThree-dimensional float range
Static methods
Methods
- def center(self, /) -> Vector3i
- Range center
- def center_x(self, /) -> int
- Range center on X axis
- def center_y(self, /) -> int
- Range center on Y axis
- def center_z(self, /) -> int
- Range center on Z axis
- def contains(self, arg0: Vector3i, /) -> bool
- Whether given point is contained inside the range
- def contains(self, arg0: Range3Di, /) -> bool
- Whether another range is fully contained inside this range
- def padded(self, arg0: Vector3i, /) -> Range3Di
- Padded ange
- def scaled(self, arg0: Vector3i, /) -> Range3Di
- Scaled range
- def scaled(self, arg0: int, /) -> Range3Di
- Scaled range
- def scaled_from_center(self, arg0: Vector3i, /) -> Range3Di
- Range scaled from the center
- def scaled_from_center(self, arg0: int, /) -> Range3Di
- Range scaled from the center
- def size(self, /) -> Vector3i
- Range size
- def size_x(self, /) -> int
- Range width
- def size_y(self, /) -> int
- Range height
- def size_z(self, /) -> int
- Range depth
- def translated(self, arg0: Vector3i, /) -> Range3Di
- Translated range
- def x(self, /) -> Range1Di
- Range in the X axis
- def xy(self, /) -> Range2Di
- Range in the XY plane
- def y(self, /) -> Range1Di
- Range in the Y axis
- def z(self, /) -> Range1Di
- Range in the Z axis
Special methods
- def __eq__(self, arg0: Range3Di, /) -> bool
- Equality comparison
- def __getstate__(self, /) -> bytes
- Dumps the in-memory representation of range min/max components
- def __init__(self, arg0: Range3D, /) -> None
- Construct from different underlying type
- def __init__(self, arg0: Range3Dd, /) -> None
- Construct from different underlying type
- def __init__(self, /) -> None
- Default constructor
- def __init__(self, arg0: Vector3i, arg1: Vector3i, /) -> None
- Construct a range from minimal and maximal coordinates
- def __init__(self, arg0: tuple[Vector3i, Vector3i], /) -> None
- Construct a range from minimal and maximal coordinates
- def __init__(self, arg0: tuple[tuple[int, int, int], tuple[int, int, int]], /) -> None
- Construct a range from a pair of minimal and maximal coordinates
- def __ne__(self, arg0: Range3Di, /) -> bool
- Non-equality comparison
- def __repr__(self, /) -> str
- Object representation
- def __setstate__(self, arg0: bytes, /) -> None
- Treats the data as the in-memory representation of range min/max components
Properties
- back: int get set
- Back edge
- back_bottom_left: Vector3i get set
- Back bottom left corner
- back_bottom_right: Vector3i get set
- Back bottom right corner
- back_top_left: Vector3i get set
- Back top left corner
- back_top_right: Vector3i get set
- Back top right corner
- bottom: int get set
- Bottom edge
- front: int get set
- Front edge
- front_bottom_left: Vector3i get set
- Front bottom left corner
- front_bottom_right: Vector3i get set
- Front bottom right corner
- front_top_left: Vector3i get set
- Front top left corner
- front_top_right: Vector3i get set
- Front top right corner
- left: int get set
- Left edge
- max: Vector3i get set
- Maximal coordinates (exclusive)
- min: Vector3i get set
- Minimal coordinates (inclusive)
- right: int get set
- Right edge
- top: int get set
- Top edge
Method documentation
def magnum. Range3Di. __setstate__(self,
arg0: bytes, /) -> None
Treats the data as the in-memory representation of range min/max components
Exceptions | |
---|---|
ValueError | If the data size doesn’t match type size |