PitchKit
API Reference@pitchkit/coreFunctions

projectGround()

function projectGround(
   layout, 
   u, 
   depth
): [number, number] | undefined;

Defined in: packages/core/src/goal/layout.ts:80

A point on the ground in front of the goal to pixels: u metres to the shooter's right of the middle and depth metres out from the goal line. undefined at or behind the camera, which has no projection.

Parameters

ParameterType
layoutGoalLayout
unumber
depthnumber

Returns

[number, number] | undefined

On this page