Corrected lengthdir_{x,y}
Added tests for degtorad, radtodeg and started lengthdir tests