Nez.Portable/UI/Base/Element.cs
/// <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>
Transforms the specified point in the stage's coordinates to the element's local coordinate system.
Transforms the specified point in the stage ' s coordinates to the element ' s local coordinate system .
public Vector2 stageToLocalCoordinates(Vector2 stageCoords)
        {
            if (parent != null)
                stageCoords = parent.stageToLocalCoordinates(stageCoords);
            stageCoords = parentToLocalCoordinates(stageCoords);
            return stageCoords;
        }
public Vector2 stageToLocalCoordinates ( Vector2 stageCoords ) { if ( parent != null ) stageCoords = parent . stageToLocalCoordinates ( stageCoords ) ; stageCoords = parentToLocalCoordinates ( stageCoords ) ; return stageCoords ; }
Transforms the specified point in the stage's coordinates to the element's local coordinate system.
Transforms the specified point in the stage ' s coordinates to the element ' s local coordinate system .
The to local coordinates.
The to local coordinates .
stageCoords
Vector2
None