Skip to content

DisplayObject.toLocal method

DisplayObject › toLocal

Unofficial

Converts a point to local coordinates.

Signature:

toLocal(position: IPointData, from?: DisplayObject | undefined, point?: P | undefined, skipUpdate?: boolean | undefined): P

Parameters:

Parameter Type Description
position IPointData The point to convert.
from? DisplayObject | undefined The display object to convert from.
point? P | undefined Output point.
skipUpdate? boolean | undefined Whether to skip the update.

Returns: PThe local point.