bevy/crates/bevy_math/src
NiseVoid 524dce7505
Use a well defined type for sides in RegularPolygon (#13837)
# Objective

- Primitives should not use poorly defined types like `usize`,
especially since they are serializable

## Solution

- Use `u32` instead of `usize`
- The generic array types do not need to be changed because this size is
not actually stored or serialized anywhere

---

## Migration Guide

- `RegularPolygon` now uses `u32` instead of `usize` for the number of
sides
2024-06-19 15:43:40 +00:00
..
bounding Rename Rotation2d to Rot2 (#13694) 2024-06-05 21:51:13 +00:00
primitives Use a well defined type for sides in RegularPolygon (#13837) 2024-06-19 15:43:40 +00:00
rects Move bevy_math Reflect impls (#13520) 2024-05-27 14:15:22 +00:00
sampling Rename Rotation2d to Rot2 (#13694) 2024-06-05 21:51:13 +00:00
affine3.rs Implemented Reflect for (almost) all bevy_math types (#13537) 2024-05-27 18:18:10 +00:00
aspect_ratio.rs Implemented Reflect for (almost) all bevy_math types (#13537) 2024-05-27 18:18:10 +00:00
common_traits.rs Stable interpolation and smooth following (#13741) 2024-06-10 12:50:59 +00:00
compass.rs Added an illustration to the compass direction docs (issue 13664) (#13788) 2024-06-10 17:31:11 +00:00
cubic_splines.rs Implemented Reflect for (almost) all bevy_math types (#13537) 2024-05-27 18:18:10 +00:00
direction.rs Rename Rotation2d to Rot2 (#13694) 2024-06-05 21:51:13 +00:00
float_ord.rs Implemented Reflect for (almost) all bevy_math types (#13537) 2024-05-27 18:18:10 +00:00
lib.rs Stable interpolation and smooth following (#13741) 2024-06-10 12:50:59 +00:00
ray.rs Implemented Reflect for (almost) all bevy_math types (#13537) 2024-05-27 18:18:10 +00:00
rotation2d.rs Rename Rotation2d to Rot2 (#13694) 2024-06-05 21:51:13 +00:00