Nez.Portable/Input/Input.cs
/// <summary>
/// this takes into account the SceneResolutionPolicy and returns the value scaled to the RenderTargets coordinates
/// </summary>
/// <value>The scaled position.</value>
this takes into account the SceneResolutionPolicy and returns the value scaled to the RenderTargets coordinates
this takes into account the SceneResolutionPolicy and returns the value scaled to the RenderTargets coordinates
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static Vector2 scaledPosition(Vector2 position)
        {
            var scaledPos = new Vector2(position.X - _resolutionOffset.X, position.Y - _resolutionOffset.Y);
            return scaledPos * _resolutionScale;
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static Vector2 scaledPosition ( Vector2 position ) { var scaledPos = new Vector2 ( position . X - _resolutionOffset . X , position . Y - _resolutionOffset . Y ) ; return scaledPos * _resolutionScale ; }
this takes into account the SceneResolutionPolicy and returns the value scaled to the RenderTargets coordinates
this takes into account the SceneResolutionPolicy and returns the value scaled to the RenderTargets coordinates
position
Vector2
value
The scaled position.
The scaled position .