use super::*;
#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
pub struct Vec3 {
#[get(type(copy))]
pub(crate) x: f32,
#[get(type(copy))]
pub(crate) y: f32,
#[get(type(copy))]
pub(crate) z: f32,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct Mat4 {
#[get(type(copy))]
pub(crate) m: [f32; 16],
}
#[derive(Clone, Copy, Data, Debug, New, PartialEq)]
pub struct Aabb3D {
#[get(type(copy))]
pub(crate) min: Vec3,
#[get(type(copy))]
pub(crate) max: Vec3,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct Ray3D {
#[get(type(copy))]
pub(crate) origin: Vec3,
#[get(type(copy))]
pub(crate) direction: Vec3,
#[get(type(copy))]
pub(crate) inv_direction: Vec3,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct Frustum3D {
#[get(type(copy))]
pub(crate) planes: [[f32; 4]; 6],
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct Camera3D {
#[get(type(copy))]
pub(crate) position: Vec3,
#[get(type(copy))]
pub(crate) yaw: f32,
#[get(type(copy))]
pub(crate) pitch: f32,
#[get(type(copy))]
pub(crate) fov_deg: f32,
#[get(type(copy))]
pub(crate) near: f32,
#[get(type(copy))]
pub(crate) far: f32,
}