Skip to main content

math/
cube.rs

1use maths_rs::Vec3f;
2
3#[derive(Debug, Clone, Copy, PartialEq)]
4pub struct Cube {
5	pub center: Vec3f,
6	pub half_size: Vec3f,
7}
8
9impl Cube {
10	pub fn new(center: Vec3f, half_size: Vec3f) -> Self {
11		Self { center, half_size }
12	}
13}