Point
kloppy.domain.Point
dataclass
Point on the pitch.
ATTRIBUTE | DESCRIPTION |
---|---|
x |
x coordinate in unit of
TYPE:
|
y |
y coordinate in unit of
TYPE:
|
distance_to
Calculates the euclidean distance between the point and another provided point
Source code in kloppy/domain/models/pitch.py
kloppy.domain.Point3D
dataclass
Bases: Point
Point on the pitch that includes the z coordinate for height (e.g. of the ball).
ATTRIBUTE | DESCRIPTION |
---|---|
z |
z coordinate in unit of
TYPE:
|
distance_to
Calculates the euclidean distance between the point and another provided point