Represents a capsule shape with two points and a radius.
Capsule() → Capsule
Capsule(p1: Vec2, p2: Vec2, radius: SupportsFloat) → Capsule
Capsule( x1: SupportsFloat, y1: SupportsFloat, x2: SupportsFloat, y2: SupportsFloat, radius: SupportsFloat) → 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