PitchKit
API Reference@pitchkit/reactFunctions

GoalAngle()

function GoalAngle<T>(__namedParameters): Element;

Defined in: packages/react/src/GoalAngle.tsx:21

One triangular <polygon> wedge per datum, from the point to both goalposts — the angle subtended at that point by the goal mouth (mplsoccer's goal_angle). Goalpost coordinates come from computePitchGeometry(dimensions).goals, already computed for the pitch markings themselves; picking which of the two goals uses selectGoal.

Type Parameters

Type Parameter
T

Parameters

ParameterType
__namedParametersGoalAngleProps<T>

Returns

Element

On this page