bevy/crates/bevy_math/src
Matty bcdb20d4f3
Fix Triangle2d/Triangle3d interior sampling to correctly follow triangle (#12766)
# Objective

When I wrote #12747 I neglected to translate random samples from
triangles back to the point where they originated, so they would be
sampled near the origin instead of at the actual triangle location.

## Solution

Translate by the first vertex location so that the samples follow the
actual triangle.
2024-03-29 13:10:23 +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 Implement From<Vec2> for AspectRatio (#12754) 2024-03-27 22:32:31 +00:00
common_traits.rs Move Point out of cubic splines module and expand it (#12747) 2024-03-28 13:40:26 +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 Add a from Dir2 impl for Vec2 (#12594) 2024-03-20 14:21:50 +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