cropForHalf()
function cropForHalf(dimensions): CropWindow;Defined in: packages/core/src/transform/half.ts:14
Crop window for the attacking (right-hand) half of the pitch, in the provider's own coordinates.
Built in the extent frame and converted back out, so it lands correctly for
center-origin providers too — halving length alone would put the crop in
the wrong place on a grid that starts at -length/2. createPixelTransform
normalizes the corners regardless of yDirection, so y stays full-height.
Parameters
| Parameter | Type |
|---|---|
dimensions | PitchDimensions |