自分の位置表現


河原林研究室 >> EcoBe!世界一への道 >> 自分の位置表現

自分の座標計算

z = ((x * x) + (mycorner2.length * mycorner2.length) - 
(mycorner1.length * mycorner1.length)) / (2.0 * x * mycorner2.length);
my_x = mycorner2.length * z;
my_y = mycorner2.length * sqrt(1 - (z * z));