UNIT Class Reference

Lists available units for measures. More...

Static Functions

def from_string (str, name)
 Converts a string to the corresponding UNIT enum value. More...
 

Detailed Description

Lists available units for measures.

Enumerator
MILLIMETER International System (1/1000 meters)
CENTIMETER International System (1/100 meters)
METER International System (1 meter)
INCH Imperial Unit (1/12 feet)
FOOT Imperial Unit (1 foot)

Functions

◆ from_string()

def from_string (   str,
  name 
)
static

Converts a string to the corresponding UNIT enum value.

Parameters
name: The string representation of the UNIT enum value.
Returns
The corresponding UNIT enum value. If the string does not match any UNIT, UNIT.LAST is returned.