Topic: Angle Functions for 2D Maps

Here are 2 functions for movement in angles on 2D maps.
They are:

  1. string[] detect_radius(int x, int y, int distance)
    - X and Y specify the starting coordinates. The returned array contains all the coordinates that are within the range specified by the distance parameter as strings. The X part of a coordinate is separated from the Y part of a coordinate by a comma. So, you get values like "0,5" or "-3,2".

  2. int[] move_grades(int x, int y, int distance, int grades)
    - X and Y specify the starting coordinates. Distance specifies the length and grades specifies the angle. The returned array contains 2 items. The item with index 0 contains the X coordinate and the item with index 1 contains the Y coordinate.

Don't hesitate if you have any comments or if you find any errors.