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
| Parameter | Type |
|---|---|
layout | GoalLayout |
u | number |
depth | number |
Returns
[number, number] | undefined