bevy/crates/bevy_math/src
Jakub Marcowski 31d91466b4
Add Annulus primitive to bevy_math::primitives (#12706)
# Objective

- #10572

There is no 2D primitive available for the common shape of an annulus
(ring).

## Solution

This PR introduces a new type to the existing math primitives:

- `Annulus`: the region between two concentric circles

---

## Changelog

### Added

- `Annulus` primitive to the `bevy_math` crate
- `Annulus` tests (`diameter`, `thickness`, `area`, `perimeter` and
`closest_point` methods)

---------

Co-authored-by: Joona Aalto <jondolf.dev@gmail.com>
2024-03-25 23:13:14 +00:00
..
bounding Add scale_around_center method to BoundingVolume trait (#12142) 2024-03-11 21:48:25 +00:00
primitives Add Annulus primitive to bevy_math::primitives (#12706) 2024-03-25 23:13:14 +00:00
rects Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
affine3.rs Automatic batching/instancing of draw commands (#9685) 2023-09-21 22:12:34 +00:00
aspect_ratio.rs Introduce AspectRatio struct (#10368) 2023-12-17 02:01:26 +00:00
cubic_splines.rs Make cardinal splines include endpoints (#12574) 2024-03-21 18:58:51 +00:00
direction.rs Add a from Dir2 impl for Vec2 (#12594) 2024-03-20 14:21:50 +00:00
lib.rs Set the logo and favicon for all of Bevy's published crates (#12696) 2024-03-25 18:52:50 +00:00
ray.rs Rename Direction2d/3d to Dir2/3 (#12189) 2024-02-28 22:48:43 +00:00
rotation2d.rs Add Rotation2d (#11658) 2024-03-11 19:11:57 +00:00
shape_sampling.rs Uniform point sampling methods for some primitive shapes. (#12484) 2024-03-17 14:48:16 +00:00