ComplexShape

A shape with with complex dimensions that can be filled with liquid.

Decorators
dataclasses.dataclass

Methods

  • __init__(self, height : Decimal, factor : Decimal) -> None

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      height
      Type
      Decimal
      Default
      Description

    • Name
      factor
      Type
      Decimal
      Default
      Description

  • volume_for_height(self, height : Number) -> decimal.Decimal

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      height
      Type
      Number
      Default
      Description

    Response

    Type
    decimal.Decimal
    Description

  • height_for_volume(self, volume : Number) -> decimal.Decimal

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      volume
      Type
      Number
      Default
      Description

    Response

    Type
    decimal.Decimal
    Description

  • __post_init__(self) -> None

Attributes

  • Name
    factor
    Type
    Decimal
    Value

    = Decimal()

    Description

  • Name
    max_fitting_volume
    Type
    decimal.Decimal
    Value

    = None

    Description

    The maximum volume that fits into this shape.

  • Name
    height
    Type
    Decimal
    Value

    = Decimal()

    Description

Copyright © 2024