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)
def _hitpoint_l(self, x, y, height, slope): hitpoint = MathUtils.calc_y_intercept(x, y, slope) return MathUtils.calc_folded_point(hitpoint, height)