# `BB.Message.Geometry.Accel`
[🔗](https://github.com/beam-bots/bb/blob/main/lib/bb/message/geometry/accel.ex#L5)

Linear and angular acceleration in 3D space.

## Fields

- `linear` - Linear acceleration as `BB.Vec3.t()` in m/s²
- `angular` - Angular acceleration as `BB.Vec3.t()` in rad/s²

## Examples

    alias BB.Message.Geometry.Accel
    alias BB.Math.Vec3

    {:ok, msg} = Accel.new(:base_link, Vec3.new(0.0, 0.0, 9.81), Vec3.zero())

# `t`

```elixir
@type t() :: %BB.Message.Geometry.Accel{
  angular: BB.Math.Vec3.t(),
  linear: BB.Math.Vec3.t()
}
```

# `new`

```elixir
@spec new(
  atom(),
  keyword()
) :: {:ok, BB.Message.t()} | {:error, term()}
```

# `new`

```elixir
@spec new(atom(), BB.Math.Vec3.t(), BB.Math.Vec3.t()) ::
  {:ok, BB.Message.t()} | {:error, term()}
```

Create a new Accel message.

Returns `{:ok, %BB.Message{}}` with the acceleration as payload.

## Examples

    alias BB.Math.Vec3

    {:ok, msg} = Accel.new(:base_link, Vec3.new(0.0, 0.0, 9.81), Vec3.zero())

---

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