slenkar
29-11-2010, 04:09 PM
is this the only way to cast from float to int?
result_flt:single=math.ArcTan2(dy,dx);
result_string2:string=floattostr(radtodeg(result_f lt));
result_int2:integer=strtoint(result_string2);
first:= result_int2+360;
result:= first Mod 360;
result_flt:single=math.ArcTan2(dy,dx);
result_string2:string=floattostr(radtodeg(result_f lt));
result_int2:integer=strtoint(result_string2);
first:= result_int2+360;
result:= first Mod 360;