Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }