Capsule2d
Capsule2d
- radius : f32
- half_length : f32
Description
A 2D capsule primitive, also known as a stadium or pill shape.
A two-dimensional capsule is defined as a neighborhood of points at a distance (radius) from a line
Functions
Function | Summary |
---|---|
clone(_self) | No Documentation 🚧 |
eq(_self, other) | No Documentation 🚧 |
new(radius, length) | Create a new `Capsule2d` from a radius and length |
to_inner_rectangle(_self) | Get the part connecting the semicircular ends of the capsule as a [`Rectangle`] |