toGoalMetres()
function toGoalMetres(
frame,
y,
z
): [number, number];Defined in: packages/core/src/goal/frames.ts:51
A frame's coordinates in metres from the middle of the goal line.
Each axis is scaled by the frame's own goal, not a unit conversion, so a value on a post or on the bar in the provider's data lands exactly on the drawn post or bar. StatsBomb's 8 yd is 7.315 m, not 7.32.
Parameters
| Parameter | Type |
|---|---|
frame | GoalFrame |
y | number |
z | number |
Returns
[number, number]