Пример #1
0
 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
 def _hitpoint_l(self, x, y, height, slope):
     hitpoint = MathUtils.calc_y_intercept(x, y, slope)
     return MathUtils.calc_folded_point(hitpoint, height)