conspire 0.7.1

The Rust interface to conspire.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[cfg(test)]
mod test;

use crate::geometry::{Coordinate, bbox::BoundingBox, bvh::primitive::Primitive};

impl<const D: usize> Primitive<D> {
    pub fn bounding_box(&self) -> &BoundingBox<D> {
        &self.bounding_box
    }
    pub fn centroid(&self) -> &Coordinate<D> {
        &self.centroid
    }
    pub fn index(&self) -> usize {
        self.index
    }
}