computeGoalBox()
function computeGoalBox(
goal,
isLeft,
depth
): Rect;
Defined in: packages/core/src/scene/appearance.ts:44
Computes the goal-box Rect for one goal line. isLeft = the pitch's near/left goal.
Parameters
| Parameter | Type |
|---|---|
goal | Line |
isLeft | boolean |
depth | number |