sneak/Shared/Vectors.cs

16 lines
370 B
C#
Raw Normal View History

using Microsoft.Xna.Framework;
using System;
namespace SemiColinGames {
public static class Vectors {
public static Vector2 Floor(Vector2 v) {
return new Vector2((float) Math.Floor(v.X), (float) Math.Floor(v.Y));
}
public static Vector2 Round(Vector2 v) {
return new Vector2((float) Math.Round(v.X), (float) Math.Round(v.Y));
}
}
}