/// <summary> /// Transforms the specified point in the stage's coordinates to the element's local coordinate system. /// </summary> /// <returns>The to local coordinates.</returns> /// <param name="stageCoords">Stage coords.</param> public Vector2 StageToLocalCoordinates(Vector2 stageCoords) { if (parent != null) { stageCoords = parent.StageToLocalCoordinates(stageCoords); } stageCoords = ParentToLocalCoordinates(stageCoords); return(stageCoords); }
/// <summary> /// Transforms the specified point in the stage's coordinates to the element's local coordinate system. /// </summary> /// <returns>The to local coordinates.</returns> /// <param name="stageCoords">Stage coords.</param> public System.Numerics.Vector2 StageToLocalCoordinates(System.Numerics.Vector2 stageCoords) { if (parent != null) { stageCoords = parent.StageToLocalCoordinates(stageCoords); } stageCoords = ParentToLocalCoordinates(stageCoords); return(stageCoords); }