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);
}