Trait rtbvh::spatial_sah::SpatialTriangle[][src]

pub trait SpatialTriangle {
    fn vertex0(&self) -> Vec3;
fn vertex1(&self) -> Vec3;
fn vertex2(&self) -> Vec3; fn split(&self, axis: usize, position: f32) -> (Aabb<i32>, Aabb<i32>) { ... }
fn intersect(&self, ray: &mut Ray) -> bool { ... }
fn intersect4(
        &self,
        packet: &mut RayPacket4,
        t_min: &[f32; 4]
    ) -> Option<[bool; 4]> { ... } }

Required methods

fn vertex0(&self) -> Vec3[src]

fn vertex1(&self) -> Vec3[src]

fn vertex2(&self) -> Vec3[src]

Loading content...

Provided methods

fn split(&self, axis: usize, position: f32) -> (Aabb<i32>, Aabb<i32>)[src]

fn intersect(&self, ray: &mut Ray) -> bool[src]

fn intersect4(
    &self,
    packet: &mut RayPacket4,
    t_min: &[f32; 4]
) -> Option<[bool; 4]>
[src]

Loading content...

Implementors

Loading content...