changed: move_to function to lerp.
added: atan2, min, max, scale, angle, clamp.
added function: _get_xy to return x,y elements in a tuple form.
improved casting within library calls.
note: draw_rect has the option to rotate its position around its origin vector.
math_fractional, vector2_fractional, vector2_floor, vector2_sin, vector2_random, vector2_herp, vector2_noise
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.