Aka_s_Vayne.Logic.AJSProvider.GetRotatedQPositions C# (CSharp) Method

GetRotatedQPositions() static private method

static private GetRotatedQPositions ( ) : List
return List
        static List<Vector3> GetRotatedQPositions()
        {
            const int currentStep = 30;
            // var direction = Variables._Player.Direction.To2D().Perpendicular();
            var direction = (Game.CursorPos - Variables._Player.ServerPosition).Normalized().To2D();

            var list = new List<Vector3>();
            for (var i = -70; i <= 70; i += currentStep)
            {
                var angleRad = Geometry.DegreeToRadian(i);
                var rotatedPosition = Variables._Player.Position.To2D() + (300f * direction.Rotated(angleRad));
                list.Add(rotatedPosition.To3D());
            }
            return list;
        }