1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#![doc = include_str!("../README.md")]
#![cfg_attr(not(debug_assertions), warn(missing_docs))]
mod geom;
#[cfg(feature = "mesh")]
pub mod mesh;
#[cfg(feature = "render")]
pub mod render;
#[cfg(feature = "spatial")]
pub mod spatial;
mod tree;
pub mod vec;
use nalgebra::{Point3, Point4};
pub use geom::*;
pub use tree::*;
pub type VoxelPoint<Idx> = Point3<Idx>;
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
pub struct NodePoint<Idx: TreeIndex>(Point4<Idx>);
impl<Idx: TreeIndex> NodePoint<Idx> {
#[inline]
pub fn new(x: Idx, y: Idx, z: Idx, d: Idx) -> Self {
Self(Point4::new(x, y, z, d))
}
}