Pitch
kloppy.domain.models.pitch.Point
dataclass
Point on the pitch.
Attributes:
Name | Type | Description |
---|---|---|
x |
float |
x coordinate in unit of |
y |
float |
y coordinate in unit of |
distance_to(self, other)
Calculates the euclidean distance between the point and another provided point
Parameters:
Name | Type | Description | Default |
---|---|---|---|
other |
Point |
See |
required |
Source code in kloppy/domain/models/pitch.py
kloppy.domain.models.pitch.Point3D (Point)
dataclass
Point on the pitch that includes the z coordinate for height (e.g. of the ball).
Attributes:
Name | Type | Description |
---|---|---|
z |
Optional[float] |
z coordinate in unit of |
kloppy.domain.models.pitch.PitchDimensions
dataclass
kloppy.domain.models.pitch.Dimension
dataclass
Attributes:
Name | Type | Description |
---|---|---|
min |
float |
Minimal possible value within this dimension |
max |
float |
Maximal possible value within this dimension |