U
Jump to navigation
Jump to search
This page is dedicated for describing the xor.util.ds.U
U is a immutable data-structure library, where U stands for both Util and Universal.
With U, you can write code just like this:
Vec dis = displacement(bot.pos(), enemy.pos());
dis = rotate(dis, radians(PI / 2));
Point projected = project(bot.pos(), dis);
Or even this:
Vec dis = displacement(bot.pos(), enemy.pos());
double latVel = cross(dis, enemy.vel());
double advVel = dot(dis, enemy.vel());