Produce time sequenced pitch locations from PITCHf/x parameters

Share:

Description

This function generates the x, y and z locations used in animateFX and interactiveFX.

Usage

1
getSnapshots(data, interval = 0.01)

Arguments

data

The nine PITCHf/x parameters used to determine the location of a pitch at a given time.

interval

the amount of time between 'snapshots'

Value

Return a three dimensional array. The third dimension corresponds to different 'snapshots' of locations.

References

http://baseball.physics.illinois.edu/KaganPitchfx.pdf