bevy/crates/bevy_math/src/primitives
Vitor Falcao c9ec95d782
Add Triangle3d primitive to bevy_math::primitives (#12508)
# Context

[GitHub Discussion
Link](https://github.com/bevyengine/bevy/discussions/12506)

# Objective

- **Clarity:** More explicit representation of a common geometric
primitive.
- **Convenience:** Provide methods tailored to 3D triangles (area,
perimeters, etc.).

## Solution

- Adding the `Triangle3d` primitive into the `bevy_math` crate.

---

## Changelog

### Added

- `Triangle3d` primitive to the `bevy_math` crate

### Changed

- `Triangle2d::reverse`: the first and last vertices are swapped instead
of the second and third.

---------

Co-authored-by: Miles Silberling-Cook <NthTensor@users.noreply.github.com>
Co-authored-by: Joona Aalto <jondolf.dev@gmail.com>
2024-03-22 17:24:51 +00:00
..
dim2.rs Add Triangle3d primitive to bevy_math::primitives (#12508) 2024-03-22 17:24:51 +00:00
dim3.rs Add Triangle3d primitive to bevy_math::primitives (#12508) 2024-03-22 17:24:51 +00:00
mod.rs Add Direction3dA and move direction types out of primitives (#12018) 2024-02-26 13:57:49 +00:00
serde.rs Derive PartialEq, Serialize, Deserialize and Reflect on primitives (#11514) 2024-01-28 14:55:30 +00:00