4.6.3. pde.tools.cuboid module¶
An n-dimensional, axes-aligned cuboid
This module defines the Cuboid
class, which represents an n-dimensional
cuboid that is aligned with the axes of a Cartesian coordinate system.
- class Cuboid(pos, size, mutable=True)[source]¶
Bases:
object
class that represents a cuboid in \(n\) dimensions
defines a cuboid from a position and a size vector
- Parameters
- property centroid¶
- property corners: Tuple[ndarray, ndarray]¶
return coordinates of two extreme corners defining the cuboid