byte-engine-math 0.1.0

Math type aliases and helpers used across Byte-Engine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use maths_rs::Vec3f;

#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Cube {
	pub center: Vec3f,
	pub half_size: Vec3f,
}

impl Cube {
	pub fn new(center: Vec3f, half_size: Vec3f) -> Self {
		Self { center, half_size }
	}
}