#![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))
}
}