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