axiosengine/axios/Engine/Extensions/Vector2.cs
Nathan Adams b6e6744a88 Adding extension for rectangleitem to get position in Farseer units ( getSimPosition )
Adding extension for vector2 to convert back and forth between sim and display units
2015-01-01 14:36:46 -06:00

24 lines
545 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Gleed2D.InGame;
using FarseerPhysics.SamplesFramework;
namespace Axios.Engine.Extensions
{
public static class AxiosExtensions_Vector2
{
public static Vector2 toSimUnits(this Vector2 vec)
{
return ConvertUnits.ToSimUnits(vec);
}
public static Vector2 toDisplayUnits(this Vector2 vec)
{
return ConvertUnits.ToDisplayUnits(vec);
}
}
}