packer-3d 0.2.4

Packing algorithm for 3D container packing which optimizes for width, height, length, or all three.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! 3-dimensional vector

#[derive(Eq, PartialEq, Default, Hash, Copy, Clone, Debug)]
pub struct Vector3D<T> {
	pub x: T,
	pub y: T,
	pub z: T,
}

impl<T> Vector3D<T> {
	pub fn new(x: T, y: T, z: T) -> Vector3D<T> {
		Vector3D::<T> {x, y, z}
	}
}