Struct rtbvh::MortonEncoder[][src]

pub struct MortonEncoder { /* fields omitted */ }

Implementations

impl MortonEncoder[src]

pub const MAX_GRID_DIM: usize[src]

pub fn new(aabb: &Aabb, grid_dim: usize) -> MortonEncoder[src]

pub fn morton_encode(x: u32, y: u32, z: u32) -> u32[src]

pub fn encode<T: Into<[f32; 3]> + Debug + Copy>(&self, point: T) -> u32[src]

pub fn get_sorted_indices<E: Debug + Copy + Send + Sync, T: Primitive<E>>(
    &self,
    aabbs: &[Aabb<E>],
    primitives: &[T]
) -> (Vec<u32>, Vec<u32>)
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.