Class SizeMM
- class ooodev.utils.data_type.size_mm.SizeMM(width, height)[source]
Size Width and Height in
mm
units.- __init__(width, height)[source]
Constructor
- Parameters:
width (float, UnitT) – Specifies width in
mm
units or Class UnitT.height (float, UnitT) – Specifies height in
mm
units or Class UnitT.
- 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:
- get_size_mm100()[source]
Gets instance converted to Size in
1/100th mm
units.- Returns:
Size in
mm
units.- Return type:
- property height: float
Gets/Sets height
- Return type:
float
- property width: float
Gets/Sets width
- Return type:
float