/// <summary> /// Transforms local (0, 0) to point in coordinate system of targetContainer /// </summary> public Vector2 LocalToLocal(DisplayObject targetContainer) { return(targetContainer.GlobalToLocal(LocalToGlobal(Vector2.zero))); }
/// <summary> /// Transforms local rect to rect in coordinate system of targetContainer /// </summary> public Rect LocalToLocal(Rect rect, DisplayObject targetContainer) { return(targetContainer.GlobalToLocal(LocalToGlobal(rect))); }
/// <summary> /// Transforms local point to point in coordinate system of targetContainer /// </summary> public Vector2 LocalToLocal(Vector2 point, DisplayObject targetObject) { return(targetObject.GlobalToLocal(LocalToGlobal(point))); }