Unit
kloppy.domain.Unit
Bases: Enum
Unit to measure distances on a pitch.
ATTRIBUTE | DESCRIPTION |
---|---|
METERS |
Meters
TYPE:
|
YARDS |
Yards
TYPE:
|
CENTIMETERS |
Centimeters
TYPE:
|
FEET |
Feet
TYPE:
|
NORMED |
Normalized to a unit square
TYPE:
|
convert
Converts a value from one unit to another.
PARAMETER | DESCRIPTION |
---|---|
to_unit
|
The unit to convert to
TYPE:
|
value
|
The value to convert
TYPE:
|
Returns: The value converted to the target unit