Add2DVectorsGetVelocity
not ratedReturns the velocity of two added vectors.
dir1 and dir2 must be in degrees.
dir1 and dir2 must be in degrees.
function Add2DVectorsGetVelocity takes real v1, real dir1, real v2, real dir2 returns real
local real x = CosBJ(dir1) * v1 + CosBJ(dir2) * v2
local real y = SinBJ(dir1) * v1 + SinBJ(dir2) * v2
return SquareRoot(x*x + y*y)
endfunctionNo comments.