// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1367 globals endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function init_test takes nothing returns nothing local real tuple_temp = 1. local real tuple_temp_1 = 2. local real v_x = tuple_temp local real v_y = tuple_temp_1 local real tuple_temp_2 = v_x local real tuple_temp_3 = v_y local real this_x = tuple_temp_2 local real this_y = tuple_temp_3 local real tuple_temp_4 = 1.5708 local real ang_radians = tuple_temp_4 local real dist = 10. local real tuple_temp_5 = this_x local real tuple_temp_6 = this_y local real this_x_1 = tuple_temp_5 local real this_y_1 = tuple_temp_6 local real tuple_temp_7 = ang_radians local real this_radians = tuple_temp_7 local real len = dist local real tuple_temp_8 = Cos(this_radians) * len local real tuple_temp_9 = Sin(this_radians) * len local real v_x_1 = tuple_temp_8 local real v_y_1 = tuple_temp_9 local real tuple_temp_10 = this_x_1 + v_x_1 local real tuple_temp_11 = this_y_1 + v_y_1 set v_x = tuple_temp_10 set v_y = tuple_temp_11 if v_x >= 0.99 and v_x <= 1.01 and v_y >= 11.99 and v_y <= 12.01 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction