Class SizeMM

class ooodev.utils.data_type.size_mm.SizeMM(width, height)[source]

Size Width and Height in mm units.

Parameters:
  • width (float | UnitT) –

  • height (float | UnitT) –

__init__(width, height)[source]

Constructor

Parameters:
Return type:

None

static from_mm100(width, height)[source]

Gets instance from width and height where width and height are in 1/100th mm units.

Parameters:
  • width (int) – Width in 1/100th mm units.

  • height (int) – Height in 1/100th mm units.

Returns:

Size in mm units

Return type:

SizeMM

static from_size_mm100(size)[source]

Gets instance from Size where Size is in 1/100th mm units.

Parameters:

size (Size) – Size in 1/100th mm units

Returns:

Size in mm units

Return type:

SizeMM

get_size_mm100()[source]

Gets instance converted to Size in 1/100th mm units.

Returns:

Size in mm units.

Return type:

Size

property height: float

Gets/Sets height

Return type:

float

property width: float

Gets/Sets width

Return type:

float