real vec3_moveTowards_return_x129 real vec3_moveTowards_return_y381 real vec3_moveTowards_return_z110 real vec3_op_plus_return_x178 real vec3_op_plus_return_y177 real vec3_op_plus_return_z110 real vec3_op_minus_return_x490 real vec3_op_minus_return_y118 real vec3_op_minus_return_z816 real vec3_op_mult_return_x210 real vec3_op_mult_return_y719 real vec3_op_mult_return_z192 real real_op_mult_return_x134 real real_op_mult_return_y124 real real_op_mult_return_z210 real vec3_normalizedPointerTo_return_x197 real vec3_normalizedPointerTo_return_y523 real vec3_normalizedPointerTo_return_z199 function initGlobals174() { } function main723() { initGlobals174(); init_test189(); } function config256() { } function init_test189() { local real a_x835 local real a_y192 local real a_z294 local real b_x191 local real b_y127 local real b_z174 local real tuple_temp191 local real tuple_temp126 local real tuple_temp218 local real tuple_temp209 local real tuple_temp157 local real tuple_temp135 tuple_temp_191 = vec3_moveTowards529(0., 0., 0., 1., 2., 3., 10.); tuple_temp_126 = vec3_moveTowards_return_y_381; tuple_temp_218 = vec3_moveTowards_return_z_110; a_x_835 = tuple_temp_191; a_y_192 = tuple_temp_126; a_z_294 = tuple_temp_218; tuple_temp_209 = vec3_moveTowards529(0., 0., 0., 6., 5., 4., 10.); tuple_temp_157 = vec3_moveTowards_return_y_381; tuple_temp_135 = vec3_moveTowards_return_z_110; b_x_191 = tuple_temp_209; b_y_127 = tuple_temp_157; b_z_174 = tuple_temp_135; if (vec3_approxEq153(a_x_835, a_y_192, a_z_294, 2.673, 5.345, 8.018) and vec3_approxEq153(b_x_191, b_y_127, b_z_174, 6.838, 5.698, 4.558)) { testSuccess167(); } else { }; } function vec3_length202(real this_x125, real this_y585, real this_z212) returns real { return SquareRoot140((((this_x_125 * this_x_125) + (this_y_585 * this_y_585)) + (this_z_212 * this_z_212))); } IS_NATIVE IS_EXTERN @extern function SquareRoot140(real x448) returns real { } function vec3_op_plus451(real this_x459, real this_y113, real this_z836, real v_x714, real v_y348, real v_z152) returns real { vec3_op_plus_return_x_178 = (this_x_459 + v_x_714); vec3_op_plus_return_y_177 = (this_y_113 + v_y_348); vec3_op_plus_return_z_110 = (this_z_836 + v_z_152); return vec3_op_plus_return_x_178; } function vec3_op_minus129(real this_x109, real this_y249, real this_z170, real v_x601, real v_y118, real v_z124) returns real { vec3_op_minus_return_x_490 = (this_x_109 - v_x_601); vec3_op_minus_return_y_118 = (this_y_249 - v_y_118); vec3_op_minus_return_z_816 = (this_z_170 - v_z_124); return vec3_op_minus_return_x_490; } function vec3_op_mult183(real this_x149, real this_y205, real this_z173, real factor129) returns real { vec3_op_mult_return_x_210 = (this_x_149 * factor_129); vec3_op_mult_return_y_719 = (this_y_205 * factor_129); vec3_op_mult_return_z_192 = (this_z_173 * factor_129); return vec3_op_mult_return_x_210; } function real_op_mult157(real this721, real v_x713, real v_y151, real v_z119) returns real { real_op_mult_return_x_134 = (v_x_713 * this_721); real_op_mult_return_y_124 = (v_y_151 * this_721); real_op_mult_return_z_210 = (v_z_119 * this_721); return real_op_mult_return_x_134; } function vec3_normalizedPointerTo863(real this_x735, real this_y753, real this_z209, real target_x163, real target_y773, real target_z168) returns real { local real diff_x181 local real diff_y136 local real diff_z111 local real len204 local real tuple_temp118 local real tuple_temp300 local real tuple_temp146 local real tuple_temp251 local real tuple_temp108 local real tuple_temp407 local real tuple_temp197 local real tuple_temp160 local real tuple_temp706 tuple_temp_118 = vec3_op_minus129(target_x_163, target_y_773, target_z_168, this_x_735, this_y_753, this_z_209); tuple_temp_300 = vec3_op_minus_return_y_118; tuple_temp_146 = vec3_op_minus_return_z_816; diff_x_181 = tuple_temp_118; diff_y_136 = tuple_temp_300; diff_z_111 = tuple_temp_146; len_204 = vec3_length202(diff_x_181, diff_y_136, diff_z_111); if (len_204 > 0.) { tuple_temp_251 = vec3_op_mult183(diff_x_181, diff_y_136, diff_z_111, (1. / len_204)); tuple_temp_108 = vec3_op_mult_return_y_719; tuple_temp_407 = vec3_op_mult_return_z_192; diff_x_181 = tuple_temp_251; diff_y_136 = tuple_temp_108; diff_z_111 = tuple_temp_407; } else { tuple_temp_197 = 1.; tuple_temp_160 = 0.; tuple_temp_706 = 0.; diff_x_181 = tuple_temp_197; diff_y_136 = tuple_temp_160; diff_z_111 = tuple_temp_706; }; vec3_normalizedPointerTo_return_x_197 = diff_x_181; vec3_normalizedPointerTo_return_y_523 = diff_y_136; vec3_normalizedPointerTo_return_z_199 = diff_z_111; return vec3_normalizedPointerTo_return_x_197; } function vec3_moveTowards529(real this_x307, real this_y339, real this_z139, real target_x180, real target_y156, real target_z357, real dist649) returns real { vec3_moveTowards_return_x_129 = vec3_op_plus451(this_x_307, this_y_339, this_z_139, real_op_mult157(dist_649, vec3_normalizedPointerTo863(this_x_307, this_y_339, this_z_139, target_x_180, target_y_156, target_z_357), vec3_normalizedPointerTo_return_y_523, vec3_normalizedPointerTo_return_z_199), real_op_mult_return_y_124, real_op_mult_return_z_210); vec3_moveTowards_return_y_381 = vec3_op_plus_return_y_177; vec3_moveTowards_return_z_110 = vec3_op_plus_return_z_110; return vec3_moveTowards_return_x_129; } function vec3_approxEq153(real this_x131, real this_y133, real this_z139, real o_x102, real o_y149, real o_z115) returns boolean { return (((((((this_x_131 - 0.01) < o_x_102) and (o_x_102 < (this_x_131 + 0.01))) and ((this_y_133 - 0.01) < o_y_149)) and (o_y_149 < (this_y_133 + 0.01))) and ((this_z_139 - 0.01) < o_z_115)) and (o_z_115 < (this_z_139 + 0.01))); } IS_NATIVE function testSuccess167() { }