bevy/crates/bevy_math/src
Lynn cd80b10d43
Math primitives cleanup (#13020)
# Objective

- General clenup of the primitives in `bevy_math`
- Add `eccentricity()` to `Ellipse`

## Solution

- Moved `Bounded3d` implementation for `Triangle3d` to the `bounded`
module
- Added `eccentricity()` to `Ellipse`
- `Ellipse::semi_major()` and `::semi_minor()` now accept `&self`
instead of `self`
- `Triangle3d::is_degenerate()` actually uses `f32::EPSILON` as
documented
- Added tests for `Triangle3d`-maths

---------

Co-authored-by: Joona Aalto <jondolf.dev@gmail.com>
Co-authored-by: Miles Silberling-Cook <nth.tensor@gmail.com>
2024-04-18 23:45:51 +00:00
..
bounding Math primitives cleanup (#13020) 2024-04-18 23:45:51 +00:00
primitives Math primitives cleanup (#13020) 2024-04-18 23:45:51 +00:00
rects Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
sampling Random sampling of directions and quaternions (#12857) 2024-04-04 23:13:00 +00:00
affine3.rs Automatic batching/instancing of draw commands (#9685) 2023-09-21 22:12:34 +00:00
aspect_ratio.rs Implement basic traits for AspectRatio (#12840) 2024-04-01 23:02:07 +00:00
common_traits.rs Remove VectorSpace impl on Quat (#12796) 2024-03-30 17:18:52 +00:00
cubic_splines.rs Move Point out of cubic splines module and expand it (#12747) 2024-03-28 13:40:26 +00:00
direction.rs Remove redundant imports (#12817) 2024-04-01 19:59:08 +00:00
float_ord.rs Move FloatOrd into bevy_math (#12732) 2024-03-27 18:30:11 +00:00
lib.rs Random sampling of directions and quaternions (#12857) 2024-04-04 23:13:00 +00:00
ray.rs separating finite and infinite 3d planes (#12426) 2024-04-18 14:13:22 +00:00
rotation2d.rs Add Rotation2d (#11658) 2024-03-11 19:11:57 +00:00