Add trait derivations to Brush and Aabb

This commit is contained in:
Jarrod Doyle 2023-09-25 10:45:45 +01:00
parent 700ad4b8ba
commit dd73410d0a
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
use glam::Vec3; use glam::Vec3;
#[derive(Default, Debug)] #[derive(Default, Debug, Copy, Clone)]
pub struct Aabb { pub struct Aabb {
pub min: Vec3, pub min: Vec3,
pub max: Vec3, pub max: Vec3,

View File

@ -37,6 +37,7 @@ pub struct BrushPlane {
pub tex_projection: TextureProjection, pub tex_projection: TextureProjection,
} }
#[derive(Debug, Clone)]
pub struct Brush { pub struct Brush {
pub planes: Vec<BrushPlane>, pub planes: Vec<BrushPlane>,
raw_vertices: Vec<PlaneIntersection>, raw_vertices: Vec<PlaneIntersection>,