real vec3_moveTowards_return_x114 real vec3_moveTowards_return_y884 real vec3_moveTowards_return_z140 real vec3_normalizedPointerTo_return_x191 real vec3_normalizedPointerTo_return_y462 real vec3_normalizedPointerTo_return_z165 function initGlobals210() { } function main126() { initGlobals210(); init_test197(); } function config209() { } function init_test197() { local real a_x168 local real a_y268 local real a_z120 local real b_x983 local real b_y596 local real b_z140 local real this_x200 local real this_y574 local real this_z376 local real o_x133 local real o_y132 local real o_z206 local real this_x199 local real this_y127 local real this_z119 local real o_x174 local real o_y202 local real o_z851 local boolean andLeft966 local real tuple_temp202 local real tuple_temp588 local real tuple_temp203 local real tuple_temp137 local real tuple_temp197 local real tuple_temp535 local real tuple_temp104 local real tuple_temp131 local real tuple_temp804 local real tuple_temp988 local real tuple_temp168 local real tuple_temp438 local real tuple_temp196 local real tuple_temp133 local real tuple_temp196 local real tuple_temp153 local real tuple_temp470 local real tuple_temp189 tuple_temp_202 = vec3_moveTowards523(0., 0., 0., 1., 2., 3., 10.); tuple_temp_588 = vec3_moveTowards_return_y_884; tuple_temp_203 = vec3_moveTowards_return_z_140; a_x_168 = tuple_temp_202; a_y_268 = tuple_temp_588; a_z_120 = tuple_temp_203; tuple_temp_137 = vec3_moveTowards523(0., 0., 0., 6., 5., 4., 10.); tuple_temp_197 = vec3_moveTowards_return_y_884; tuple_temp_535 = vec3_moveTowards_return_z_140; b_x_983 = tuple_temp_137; b_y_596 = tuple_temp_197; b_z_140 = tuple_temp_535; tuple_temp_104 = a_x_168; tuple_temp_131 = a_y_268; tuple_temp_804 = a_z_120; this_x_200 = tuple_temp_104; this_y_574 = tuple_temp_131; this_z_376 = tuple_temp_804; tuple_temp_988 = 2.673; tuple_temp_168 = 5.345; tuple_temp_438 = 8.018; o_x_133 = tuple_temp_988; o_y_132 = tuple_temp_168; o_z_206 = tuple_temp_438; if (((((((this_x_200 - 0.01) < o_x_133) and (o_x_133 < (this_x_200 + 0.01))) and ((this_y_574 - 0.01) < o_y_132)) and (o_y_132 < (this_y_574 + 0.01))) and ((this_z_376 - 0.01) < o_z_206)) and (o_z_206 < (this_z_376 + 0.01))) { tuple_temp_196 = b_x_983; tuple_temp_133 = b_y_596; tuple_temp_196 = b_z_140; this_x_199 = tuple_temp_196; this_y_127 = tuple_temp_133; this_z_119 = tuple_temp_196; tuple_temp_153 = 6.838; tuple_temp_470 = 5.698; tuple_temp_189 = 4.558; o_x_174 = tuple_temp_153; o_y_202 = tuple_temp_470; o_z_851 = tuple_temp_189; andLeft_966 = (((((((this_x_199 - 0.01) < o_x_174) and (o_x_174 < (this_x_199 + 0.01))) and ((this_y_127 - 0.01) < o_y_202)) and (o_y_202 < (this_y_127 + 0.01))) and ((this_z_119 - 0.01) < o_z_851)) and (o_z_851 < (this_z_119 + 0.01))); } else { andLeft_966 = false; }; if andLeft_966 { testSuccess191(); } else { }; } IS_NATIVE IS_EXTERN @extern function SquareRoot118(real x300) returns real { } function vec3_normalizedPointerTo192(real this_x133, real this_y106, real this_z113, real target_x166, real target_y188, real target_z149) returns real { local real diff_x194 local real diff_y158 local real diff_z151 local real len121 local real this_x119 local real this_y587 local real this_z673 local real v_x115 local real v_y205 local real v_z254 local real this_x923 local real this_y157 local real this_z129 local real this_x206 local real this_y834 local real this_z165 local real factor644 local real tuple_temp112 local real tuple_temp750 local real tuple_temp204 local real tuple_temp878 local real tuple_temp205 local real tuple_temp771 local real tuple_temp404 local real tuple_temp178 local real tuple_temp511 local real tuple_temp211 local real tuple_temp781 local real tuple_temp914 local real tuple_temp189 local real tuple_temp624 local real tuple_temp211 local real tuple_temp158 local real tuple_temp187 local real tuple_temp806 local real tuple_temp108 local real tuple_temp540 local real tuple_temp184 tuple_temp_112 = target_x_166; tuple_temp_750 = target_y_188; tuple_temp_204 = target_z_149; this_x_119 = tuple_temp_112; this_y_587 = tuple_temp_750; this_z_673 = tuple_temp_204; tuple_temp_878 = this_x_133; tuple_temp_205 = this_y_106; tuple_temp_771 = this_z_113; v_x_115 = tuple_temp_878; v_y_205 = tuple_temp_205; v_z_254 = tuple_temp_771; tuple_temp_404 = (this_x_119 - v_x_115); tuple_temp_178 = (this_y_587 - v_y_205); tuple_temp_511 = (this_z_673 - v_z_254); diff_x_194 = tuple_temp_404; diff_y_158 = tuple_temp_178; diff_z_151 = tuple_temp_511; tuple_temp_211 = diff_x_194; tuple_temp_781 = diff_y_158; tuple_temp_914 = diff_z_151; this_x_923 = tuple_temp_211; this_y_157 = tuple_temp_781; this_z_129 = tuple_temp_914; len_121 = SquareRoot118((((this_x_923 * this_x_923) + (this_y_157 * this_y_157)) + (this_z_129 * this_z_129))); if (len_121 > 0.) { tuple_temp_189 = diff_x_194; tuple_temp_624 = diff_y_158; tuple_temp_211 = diff_z_151; this_x_206 = tuple_temp_189; this_y_834 = tuple_temp_624; this_z_165 = tuple_temp_211; factor_644 = (1. / len_121); tuple_temp_158 = (this_x_206 * factor_644); tuple_temp_187 = (this_y_834 * factor_644); tuple_temp_806 = (this_z_165 * factor_644); diff_x_194 = tuple_temp_158; diff_y_158 = tuple_temp_187; diff_z_151 = tuple_temp_806; } else { tuple_temp_108 = 1.; tuple_temp_540 = 0.; tuple_temp_184 = 0.; diff_x_194 = tuple_temp_108; diff_y_158 = tuple_temp_540; diff_z_151 = tuple_temp_184; }; vec3_normalizedPointerTo_return_x_191 = diff_x_194; vec3_normalizedPointerTo_return_y_462 = diff_y_158; vec3_normalizedPointerTo_return_z_165 = diff_z_151; return vec3_normalizedPointerTo_return_x_191; } function vec3_moveTowards523(real this_x116, real this_y174, real this_z376, real target_x884, real target_y122, real target_z111, real dist148) returns real { local real this_x581 local real this_y149 local real this_z434 local real v_x207 local real v_y201 local real v_z206 local real this884 local real v_x117 local real v_y134 local real v_z286 local real tuple_temp123 local real tuple_temp438 local real tuple_temp474 local real tuple_temp821 local real tuple_temp348 local real tuple_temp152 local real tuple_temp371 local real tuple_temp109 local real tuple_temp837 tuple_temp_123 = this_x_116; tuple_temp_438 = this_y_174; tuple_temp_474 = this_z_376; this_x_581 = tuple_temp_123; this_y_149 = tuple_temp_438; this_z_434 = tuple_temp_474; this_884 = dist_148; tuple_temp_821 = vec3_normalizedPointerTo192(this_x_116, this_y_174, this_z_376, target_x_884, target_y_122, target_z_111); tuple_temp_348 = vec3_normalizedPointerTo_return_y_462; tuple_temp_152 = vec3_normalizedPointerTo_return_z_165; v_x_117 = tuple_temp_821; v_y_134 = tuple_temp_348; v_z_286 = tuple_temp_152; tuple_temp_371 = (v_x_117 * this_884); tuple_temp_109 = (v_y_134 * this_884); tuple_temp_837 = (v_z_286 * this_884); v_x_207 = tuple_temp_371; v_y_201 = tuple_temp_109; v_z_206 = tuple_temp_837; vec3_moveTowards_return_x_114 = (this_x_581 + v_x_207); vec3_moveTowards_return_y_884 = (this_y_149 + v_y_201); vec3_moveTowards_return_z_140 = (this_z_434 + v_z_206); return vec3_moveTowards_return_x_114; } IS_NATIVE function testSuccess191() { }