the event connected to this object
the game connected to this object
If the event is from the team that defends the left side of the field
Positions of all the opponents of the team associated with the event
The tracking position of the players (got from the event)
Positions of all the teammates of the team associated with the event
Return a PlayerGroup of opponents AHEAD a given field X position in percentage. NB: those are opponents coordinates if you specify for instance 50 it means "opponents on the attacking half of the pitch"
X coordinate of the field in percentage (0 friendly goal, 100 opponent goal)
Returns the players of the team against the one of the event that are behind the ball (in a more defensive position)
an array of players of the event player team that are currently behind the ball
Return a PlayerGroup of opponents behind a given field X position in percentage. NB: those are opponents coordinates if you specify for instance 50 it means "opponents on their defending half of the pitch"
X coordinate of the field in percentage (0 friendly goal, 100 opponent goal)
Get the polygon shape of the zone behind opponents of a specific role.
role of the opponents to consider (e.g., 'Defender').
the polygon shape of the zone behind the opponents as a Zone object.
Returns an array of opponents in the specified zone.
zone of the field
Get the polygon shape of opponents (excluding Goalkeeper).
players to use as the vertices of the polygon, wheter all the players or only the external ones (Convex Hull).
the polygon shape of the PlayerGroup as a Zone.
Opponents with a distance of not more than the specified amount of meters
maximum distance in meters
Returns the opponents with a given distance from the specified position.
The position is always in LTR coordinate system, with 0, 0 as the lower left corner of the field.
x position in percentage of the field length where 0 is the friendly goal and 100 the opponent goal
y position in percentage of the field width where 0 is the side of the field nearest to the broadcast camera
maximum distance from the given point in meters
Returns an array of players (both teammates and opponents) in the specified zone.
zone of the field
Players (both teammates and opponents) with a distance of not more than the specified amount of meters
maximum distance in meters
Returns the players from both team with a given distance from the specified position.
The position is always in LTR coordinate system, with 0, 0 as the lower left corner of the field.
x position in percentage of the field length where 0 is the friendly goal and 100 the opponent goal
y position in percentage of the field width where 0 is the side of the field nearest to the broadcast camera
maximum distance from the given point in meters
Return a PlayerGroup of teammates AHEAD a given field X position in percentage. Example: passing 66 as coordinate will return the group of teammates in the attacking third.
X coordinate of the field in percentage (0 friendly goal, 100 opponent goal)
Returns the players of the team that performed the specified event that are behind the ball (in a more defensive position)
an array of players of the event player team that are currently behind the ball
Return a PlayerGroup of teammates behind a given field X position in percentage. Example: passing 33 as coordinate will return the group of teammates in the defending third.
X coordinate of the field in percentage (0 friendly goal, 100 opponent goal)
Get the polygon shape of the zone behind teammates of a specific role.
role of the teammates to consider (e.g., 'Defender').
the polygon shape of the zone behind the teammates as a Zone object.
Return an array of teammates in the specified zone.
zone of the field
Get the polygon shape of teammates (excluding Goalkeeper).
players to use as the vertices of the polygon, wheter all the players or only the external ones (Convex Hull).
the polygon shape of the PlayerGroup as a Zone.
Teammates with a distance of not more than the specified amount of meters
maximum distance in meters
Returns the teammates with a given distance from the specified position.
The position is always in LTR coordinate system, with 0, 0 as the lower left corner of the field.
x position in percentage of the field length where 0 is the friendly goal and 100 the opponent goal
y position in percentage of the field width where 0 is the side of the field nearest to the broadcast camera
maximum distance from the given point in meters
This class implements the logic to handle tracking position of players from the point of view of a given player.