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:

ParameterTypeDescription
positionIPointDataThe point to convert.
from?DisplayObject | undefinedThe display object to convert from.
point?P | undefinedOutput point.
skipUpdate?boolean | undefinedWhether to skip the update.

Returns: PThe local point.