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