Skip to content

Commit e2fd3d2

Browse files
committed
derives
1 parent 557c31a commit e2fd3d2

File tree

1 file changed

+4
-0
lines changed
  • crates/bevy_geometry/src

1 file changed

+4
-0
lines changed

crates/bevy_geometry/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,26 @@ use bevy_math::{Quat, Vec3};
22

33
pub trait Primitive3d {}
44

5+
#[derive(Copy, Clone, PartialEq, Debug)]
56
pub struct Sphere {
67
pub origin: Vec3,
78
pub radius: f32,
89
}
910

11+
#[derive(Copy, Clone, PartialEq, Debug)]
1012
pub struct Box {
1113
pub maximums: Vec3,
1214
pub minimums: Vec3,
1315
pub orientation: Quat,
1416
}
1517

18+
#[derive(Copy, Clone, PartialEq, Debug)]
1619
pub struct AxisAlignedBox {
1720
pub maximums: Vec3,
1821
pub minimums: Vec3,
1922
}
2023

24+
#[derive(Copy, Clone, PartialEq, Debug)]
2125
pub struct Plane {
2226
pub point: Vec3,
2327
pub normal: Vec3,

0 commit comments

Comments
 (0)