Searched refs:halfRectHeight (Results 1 – 1 of 1) sorted by relevance
280 auto halfRectHeight = (box.max.y - box.min.y) / 2; in circleAndBoxCollide() local281 auto distY = std::abs(circle.center.y - (box.min.y + halfRectHeight)); in circleAndBoxCollide()282 if (distY > (halfRectHeight + circle.radius)) { in circleAndBoxCollide()286 if (distX <= halfRectWidth || distY <= halfRectHeight) { in circleAndBoxCollide()291 auto dy = distY - halfRectHeight; in circleAndBoxCollide()