using Microsoft.Xna.Framework;
namespace Core
{
publicclass Vector2Utilities
{
publicstatic Vector2 Perpendicular(Vector2 original)
{
//To create a perpendicular vector switch X and Y, then make Y negative
float x = original.X;
float y = original.Y;
y = -y;
returnnew Vector2(y, x);
}
}
}