Struct rs_pbrt::accelerators::kdtreeaccel::KdAccelNode
source · pub struct KdAccelNode {
pub pub_union: PublicUnion,
/* private fields */
}
Fields§
§pub_union: PublicUnion
Implementations§
source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more