FSO.Client.UI.Framework.UIElement.GetMousePosition C# (CSharp) Method

GetMousePosition() public method

Gets the local mouse coordinates for the given mouse state
public GetMousePosition ( Microsoft.Xna.Framework.Input.MouseState mouse ) : Vector2
mouse Microsoft.Xna.Framework.Input.MouseState
return Vector2
        public Vector2 GetMousePosition(MouseState mouse)
        {
            if (_InvertedMtx == null)
            {
                _InvertedMtx = _Mtx.Invert();
            }

            return _InvertedMtx.TransformPoint(mouse.X, mouse.Y);
        }