JoGall/soccermatics

Include swapSides argument to match attacking direction in both periods

Closed this issue · 1 comments

Requested by email:

Include boolean argument swapSides in functions; if TRUE, adjust x,y-coordinates from 2nd period to match attacking direction in 1st period.

e.g.

new.x = pitchLength - x
new.y = pitchWidth - y

Added soccerFlipHoriz.R() function to flip x,-y-coordinates of both sides in one half.