PitchKit
API Reference@pitchkit/coreFunctions

pitchGoalBoxDepth()

function pitchGoalBoxDepth(dimensions): number;

Defined in: packages/core/src/scene/appearance.ts:52

goalBoxDepth for a given pitch, in its own x units.

The corner-arc radius is in metres on every grid, so on a percentage grid the depth has to be converted before it is drawn alongside x coordinates. On Metrica's 0..1 grid the unconverted value is three pitch lengths.

Parameters

ParameterType
dimensionsPitchDimensions

Returns

number

On this page