def endpoints_for_circle_with_radius(radius, steps = 30)
      raise ArgumentError, "Number of points has to be in range of 1..360!" unless (1..360).include? steps

      points = []
      steps.times do |i|
        points << endpoint(radius, i * 360 / steps)
      end
      points << points.first

      points 
    end
def endpoints_for_circle_with_radius(radius, steps = 30)
      raise ArgumentError, "Number of points has to be in range of 1..360!" unless (1..360).include? steps

      points = []
      steps.times do |i|
        points << endpoint(radius, i * 360 / steps)
      end
      points << points.first

      points 
    end
Returns ends poionts which will make up a circle around current location and have given radius