PitchKit
API Reference@pitchkit/coreFunctions

computeGoalGeometry()

function computeGoalGeometry(layout, units?): GoalGeometry;

Defined in: packages/core/src/goal/geometry.ts:153

Every static shape of a goal view, in pixels: the backdrop and ground, the markings on the ground in perspective, the net, the frame and the two dimension markers. The goal view's counterpart to computePitchGeometry, so no number is baked into a component.

Parameters

ParameterTypeDefault value
layoutGoalLayoutundefined
unitsGoalMarkerUnits"metric"

Returns

GoalGeometry

On this page