conspire 0.7.1

The Rust interface to conspire.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::geometry::{Coordinate, bvh::ray::Ray};

#[test]
fn direction_is_normalized() {
    let ray = Ray::from((
        Coordinate::const_from([0.0, 0.0, 0.0]),
        Coordinate::const_from([0.0, 0.0, 5.0]),
    ));
    assert_eq!(ray.direction(), &Coordinate::const_from([0.0, 0.0, 1.0]));
}