Skip to main content

statcastPitchPath

[
  2.047516431455488,
  54.12,
  6.1739844045174035
]
import { statcastPitchPath } from "@sportsdataverse/sdvplot/three";

const pitch = {
vx0: -6.245145230392043, vy0: -140.0548111003631, vz0: -4.647911601289857,
ax: 12.681580763686934, ay: 32.15363682007945, az: -12.428443024407864,
plate_x: 0.42927397039380755, plate_z: 3.546869816011372, release_pos_y: 54.12, game_year: 2024,
};
const path = statcastPitchPath(pitch); // 41 points, release to plate
path[0]; // about [2.05, 54.12, 6.17]: Savant's release_pos_x, release_pos_y, release_pos_z

Tags: docstring · statcastPitchPath. All sdvplot examples.