public static float LengthDirY(float Length, float Direction) { return -(float)Math.Sin(MathHelper.ToRadians(Direction)) * Length; } public static Vector2 LengthDir(float Length, float Direction)