real vec3_moveTowards_return_x188 real vec3_moveTowards_return_y326 real vec3_moveTowards_return_z154 real vec3_op_plus_return_x105 real vec3_op_plus_return_y533 real vec3_op_plus_return_z154 real vec3_op_minus_return_x148 real vec3_op_minus_return_y168 real vec3_op_minus_return_z186 real vec3_op_mult_return_x523 real vec3_op_mult_return_y197 real vec3_op_mult_return_z117 real real_op_mult_return_x122 real real_op_mult_return_y554 real real_op_mult_return_z280 real vec3_normalizedPointerTo_return_x175 real vec3_normalizedPointerTo_return_y538 real vec3_normalizedPointerTo_return_z227 function initGlobals608() { } function main171() { initGlobals608(); init_test205(); } function config178() { } function init_test205() { local real a_x857 local real a_y437 local real a_z131 local real b_x195 local real b_y124 local real b_z129 local real tuple_temp130 local real tuple_temp113 local real tuple_temp175 local real tuple_temp239 local real tuple_temp981 local real tuple_temp643 tuple_temp_130 = vec3_moveTowards174(0., 0., 0., 1., 2., 3., 10.); tuple_temp_113 = vec3_moveTowards_return_y_326; tuple_temp_175 = vec3_moveTowards_return_z_154; a_x_857 = tuple_temp_130; a_y_437 = tuple_temp_113; a_z_131 = tuple_temp_175; tuple_temp_239 = vec3_moveTowards174(0., 0., 0., 6., 5., 4., 10.); tuple_temp_981 = vec3_moveTowards_return_y_326; tuple_temp_643 = vec3_moveTowards_return_z_154; b_x_195 = tuple_temp_239; b_y_124 = tuple_temp_981; b_z_129 = tuple_temp_643; if (vec3_approxEq948(a_x_857, a_y_437, a_z_131, 2.673, 5.345, 8.018) and vec3_approxEq948(b_x_195, b_y_124, b_z_129, 6.838, 5.698, 4.558)) { testSuccess167(); } else { }; } function vec3_length187(real this_x105, real this_y344, real this_z133) returns real { return SquareRoot831((((this_x_105 * this_x_105) + (this_y_344 * this_y_344)) + (this_z_133 * this_z_133))); } IS_NATIVE IS_EXTERN @extern function SquareRoot831(real x200) returns real { } function vec3_op_plus386(real this_x102, real this_y102, real this_z104, real v_x268, real v_y308, real v_z200) returns real { vec3_op_plus_return_x_105 = (this_x_102 + v_x_268); vec3_op_plus_return_y_533 = (this_y_102 + v_y_308); vec3_op_plus_return_z_154 = (this_z_104 + v_z_200); return vec3_op_plus_return_x_105; } function vec3_op_minus731(real this_x423, real this_y205, real this_z101, real v_x127, real v_y182, real v_z121) returns real { vec3_op_minus_return_x_148 = (this_x_423 - v_x_127); vec3_op_minus_return_y_168 = (this_y_205 - v_y_182); vec3_op_minus_return_z_186 = (this_z_101 - v_z_121); return vec3_op_minus_return_x_148; } function vec3_op_mult102(real this_x171, real this_y213, real this_z132, real factor756) returns real { vec3_op_mult_return_x_523 = (this_x_171 * factor_756); vec3_op_mult_return_y_197 = (this_y_213 * factor_756); vec3_op_mult_return_z_117 = (this_z_132 * factor_756); return vec3_op_mult_return_x_523; } function real_op_mult160(real this858, real v_x381, real v_y512, real v_z488) returns real { real_op_mult_return_x_122 = (v_x_381 * this_858); real_op_mult_return_y_554 = (v_y_512 * this_858); real_op_mult_return_z_280 = (v_z_488 * this_858); return real_op_mult_return_x_122; } function vec3_normalizedPointerTo312(real this_x135, real this_y135, real this_z548, real target_x134, real target_y657, real target_z603) returns real { local real diff_x150 local real diff_y169 local real diff_z618 local real len786 local real tuple_temp983 local real tuple_temp188 local real tuple_temp543 local real tuple_temp192 local real tuple_temp200 local real tuple_temp187 local real tuple_temp163 local real tuple_temp118 local real tuple_temp144 tuple_temp_983 = vec3_op_minus731(target_x_134, target_y_657, target_z_603, this_x_135, this_y_135, this_z_548); tuple_temp_188 = vec3_op_minus_return_y_168; tuple_temp_543 = vec3_op_minus_return_z_186; diff_x_150 = tuple_temp_983; diff_y_169 = tuple_temp_188; diff_z_618 = tuple_temp_543; len_786 = vec3_length187(diff_x_150, diff_y_169, diff_z_618); if (len_786 > 0.) { tuple_temp_192 = vec3_op_mult102(diff_x_150, diff_y_169, diff_z_618, (1. / len_786)); tuple_temp_200 = vec3_op_mult_return_y_197; tuple_temp_187 = vec3_op_mult_return_z_117; diff_x_150 = tuple_temp_192; diff_y_169 = tuple_temp_200; diff_z_618 = tuple_temp_187; } else { tuple_temp_163 = 1.; tuple_temp_118 = 0.; tuple_temp_144 = 0.; diff_x_150 = tuple_temp_163; diff_y_169 = tuple_temp_118; diff_z_618 = tuple_temp_144; }; vec3_normalizedPointerTo_return_x_175 = diff_x_150; vec3_normalizedPointerTo_return_y_538 = diff_y_169; vec3_normalizedPointerTo_return_z_227 = diff_z_618; return vec3_normalizedPointerTo_return_x_175; } function vec3_moveTowards174(real this_x199, real this_y109, real this_z114, real target_x148, real target_y182, real target_z112, real dist173) returns real { vec3_moveTowards_return_x_188 = vec3_op_plus386(this_x_199, this_y_109, this_z_114, real_op_mult160(dist_173, vec3_normalizedPointerTo312(this_x_199, this_y_109, this_z_114, target_x_148, target_y_182, target_z_112), vec3_normalizedPointerTo_return_y_538, vec3_normalizedPointerTo_return_z_227), real_op_mult_return_y_554, real_op_mult_return_z_280); vec3_moveTowards_return_y_326 = vec3_op_plus_return_y_533; vec3_moveTowards_return_z_154 = vec3_op_plus_return_z_154; return vec3_moveTowards_return_x_188; } function vec3_approxEq948(real this_x122, real this_y183, real this_z132, real o_x488, real o_y125, real o_z276) returns boolean { return (((((((this_x_122 - 0.01) < o_x_488) and (o_x_488 < (this_x_122 + 0.01))) and ((this_y_183 - 0.01) < o_y_125)) and (o_y_125 < (this_y_183 + 0.01))) and ((this_z_132 - 0.01) < o_z_276)) and (o_z_276 < (this_z_132 + 0.01))); } IS_NATIVE function testSuccess167() { }