The 2D layer · function

intersectClip

Write the overlap of two rectangles into out. Never negative; see the header.

Explained in Sprites and tilemaps.

function intersectClip(out: UiRect, parent: UiRect, child: UiRect): void
import { intersectClip } from '@driftengine/ui2d';

Parameters

ParameterTypeDescription
outUiRect
parentUiRect
childUiRect