PitchKit

projectOrNull()

function projectOrNull(
   project, 
   x, 
   y
): readonly [number | null, number | null];

Defined in: packages/data-providers/src/skillcorner/coordinates.ts:62

Applies a projection to a possibly-missing coordinate pair. Returns nulls unless both halves are real numbers — half a coordinate is not a position.

Parameters

ParameterType
projectPitchProjection
xnumber | null | undefined
ynumber | null | undefined

Returns

readonly [number | null, number | null]

On this page