# `BB.Dsl.Capsule`
[🔗](https://github.com/beam-bots/bb/blob/main/lib/bb/dsl/capsule.ex#L5)

A capsule geometry (cylinder with hemispherical caps).

Capsules are defined by a radius and height. The height is the distance
between the centres of the two hemispherical caps (i.e., the length of
the cylindrical portion). The total extent is `height + 2 * radius`.

Capsules are commonly used for collision detection because they have
simpler intersection algorithms than cylinders and better approximate
robot limbs.

# `t`

```elixir
@type t() :: %BB.Dsl.Capsule{
  __identifier__: any(),
  __spark_metadata__: Spark.Dsl.Entity.spark_meta(),
  height: Cldr.Unit.t(),
  radius: Cldr.Unit.t()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
