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, bvh::ray::Ray},
    math::Tensor,
};

impl<const D: usize> From<(Coordinate<D>, Coordinate<D>)> for Ray<D> {
    fn from((origin, direction): (Coordinate<D>, Coordinate<D>)) -> Self {
        Self {
            origin,
            direction: direction.normalized(),
        }
    }
}