pogona.Geometry

class pogona.Geometry(shape: Shapes)[source]

Bases: object

Common functions defined for various shapes centered around the origin (0, 0, 0) with a maximum width, height, and depth of 1.

__init__(shape: Shapes)[source]

Methods

__init__(shape)

check_basic_box(position_shifted_unit)

param position_shifted_unit

A position local to this Geometry,

is_inside_geometry(position_shifted_unit)

param position_shifted_unit

A position local to this Geometry,

__init__(shape: Shapes)[source]
static check_basic_box(position_shifted_unit: ndarray)[source]
Parameters

position_shifted_unit – A position local to this Geometry, which is confined by a cube between (-0.5, -0.5, -0.5) and (0.5, 0.5, 0.5).

Returns

is_inside_geometry(position_shifted_unit: ndarray)[source]
Parameters

position_shifted_unit – A position local to this Geometry, which is confined by a cube between (-0.5, -0.5, -0.5) and (0.5, 0.5, 0.5).

Returns