bevy/crates/bevy_math/src/primitives
Lynn 52b8b55c2d
Implement Measured2d for Arc2d-based primitives. (#16213)
# Objective

- `CircularSegment` and `CircularSector` are well defined 2D shapes with
both an area and a perimeter.

# Solution

- This PR implements `perimeter` for both and moves the existsing `area`
functions into the `Measured2d` implementations.

## Testing

- The `arc_tests` have been extended to also check for perimeters.
2024-11-03 16:12:31 +00:00
..
dim2.rs Implement Measured2d for Arc2d-based primitives. (#16213) 2024-11-03 16:12:31 +00:00
dim3.rs Implement From translation and rotation for isometries (#15733) 2024-10-08 16:09:28 +00:00
mod.rs Extrusion (#13270) 2024-05-07 14:41:55 +00:00
serde.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00