bevy/crates/bevy_math/src/primitives
Joona Aalto 9bd6cc0a5e
Add Direction3dA and move direction types out of primitives (#12018)
# Objective

Split up from #12017, add an aligned version of `Direction3d` for SIMD,
and move direction types out of `primitives`.

## Solution

Add `Direction3dA` and move direction types into a new `direction`
module.

---

## Migration Guide

The `Direction2d`, `Direction3d`, and `InvalidDirectionError` types have
been moved out of `bevy::math::primitives`.

Before:

```rust
use bevy::math::primitives::Direction3d;
```

After:

```rust
use bevy::math::Direction3d;
```

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2024-02-26 13:57:49 +00:00
..
dim2.rs Add Direction3dA and move direction types out of primitives (#12018) 2024-02-26 13:57:49 +00:00
dim3.rs Add Direction3dA and move direction types out of primitives (#12018) 2024-02-26 13:57:49 +00:00
mod.rs Add Direction3dA and move direction types out of primitives (#12018) 2024-02-26 13:57:49 +00:00
serde.rs Derive PartialEq, Serialize, Deserialize and Reflect on primitives (#11514) 2024-01-28 14:55:30 +00:00