Represents a capsule shape with two points and a radius.
Capsule() → CapsuleCapsule() → Capsule
Capsule(p1: Vec2, p2: Vec2, radius: float) → CapsuleCapsule(p1: Vec2, p2: Vec2, radius: float) → Capsule
Capsule(x1: float, y1: float, x2: float, y2: float, radius: float) → CapsuleCapsule(x1: float, y1: float, x2: float, y2: float, radius: float) → Capsule
Represents a capsule shape with two points and a radius.
as_rect() → Rectas_rect() → RectGet the axis-aligned bounding box of the capsule.
Returns
Rect : The bounding box.