Struct rs_pbrt::accelerators::kdtreeaccel::KdAccelNode
source · [−]pub struct KdAccelNode {
pub pub_union: PublicUnion,
/* private fields */
}
Fields
pub_union: PublicUnion
Implementations
sourceimpl KdAccelNode
impl KdAccelNode
pub fn init_leaf(
&mut self,
prim_nums: &[usize],
np: usize,
primitive_indices: &mut Vec<i32>
)
pub fn init_interior(&mut self, axis: i32, ac: i32, s: Float)
pub fn split_pos(&self) -> Float
pub fn n_primitives(&self) -> i32
pub fn split_axis(&self) -> i32
pub fn is_leaf(&self) -> bool
pub fn above_child(&self) -> i32
Auto Trait Implementations
impl RefUnwindSafe for KdAccelNode
impl Send for KdAccelNode
impl Sync for KdAccelNode
impl Unpin for KdAccelNode
impl UnwindSafe for KdAccelNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more