コード例 #1
0
ファイル: engine.py プロジェクト: dratini/hwo2012-pingpongbot
 def _hitpoint_r(self, x, y, width, height, slope):
     hitpoint = MathUtils.calc_y_at_distance(x, y, width, slope)
     return MathUtils.calc_folded_point(hitpoint, height)
コード例 #2
0
ファイル: engine.py プロジェクト: dratini/hwo2012-pingpongbot
 def _hitpoint_l(self, x, y, height, slope):
     hitpoint = MathUtils.calc_y_intercept(x, y, slope)
     return MathUtils.calc_folded_point(hitpoint, height)