bevy/crates/bevy_math/src
Jakub Marcowski 20ee56e719
Add Tetrahedron primitive to bevy_math::primitives (#12688)
# Objective

- #10572

There is no 3D primitive available for the common shape of a tetrahedron
(3-simplex).

## Solution

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

- `Tetrahedron`: a polyhedron composed of four triangular faces, six
straight edges, and four vertices

---

## Changelog

### Added

- `Tetrahedron` primitive to the `bevy_math` crate
- `Tetrahedron` tests (`area`, `volume` methods)
- `impl_reflect!` declaration for `Tetrahedron` in the `bevy_reflect`
crate
2024-04-01 21:53:12 +00:00
..
bounding Add scale_around_center method to BoundingVolume trait (#12142) 2024-03-11 21:48:25 +00:00
primitives Add Tetrahedron primitive to bevy_math::primitives (#12688) 2024-04-01 21:53:12 +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 Implement From<Vec2> for AspectRatio (#12754) 2024-03-27 22:32:31 +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 Move Point out of cubic splines module and expand it (#12747) 2024-03-28 13:40:26 +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 Fix Triangle2d/Triangle3d interior sampling to correctly follow triangle (#12766) 2024-03-29 13:10:23 +00:00