#[repr(C)]pub struct b3DynamicTree {
pub version: u64,
pub nodes: *mut b3TreeNode,
pub root: c_int,
pub nodeCount: c_int,
pub nodeCapacity: c_int,
pub proxyCount: c_int,
pub freeList: c_int,
pub leafIndices: *mut c_int,
pub leafBoxes: *mut b3AABB,
pub leafCenters: *mut b3Vec3,
pub binIndices: *mut c_int,
pub rebuildCapacity: c_int,
}Expand description
The dynamic tree structure. This should be considered private data. It is placed here for performance reasons.
Fields§
§version: u64The dynamic tree version. Always the first field. Useful if the tree is serialized.
nodes: *mut b3TreeNodeThe tree nodes
root: c_intThe root index
nodeCount: c_intThe number of nodes
nodeCapacity: c_intThe allocated node space
proxyCount: c_intNumber of proxies created
freeList: c_intNode free list
leafIndices: *mut c_intLeaf indices for rebuild
leafBoxes: *mut b3AABBLeaf bounding boxes for rebuild
leafCenters: *mut b3Vec3Leaf bounding box centers for rebuild
binIndices: *mut c_intBins for sorting during rebuild
rebuildCapacity: c_intAllocated space for rebuilding
Trait Implementations§
Source§impl Clone for b3DynamicTree
impl Clone for b3DynamicTree
Source§fn clone(&self) -> b3DynamicTree
fn clone(&self) -> b3DynamicTree
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for b3DynamicTree
Auto Trait Implementations§
impl !Send for b3DynamicTree
impl !Sync for b3DynamicTree
impl Freeze for b3DynamicTree
impl RefUnwindSafe for b3DynamicTree
impl Unpin for b3DynamicTree
impl UnsafeUnpin for b3DynamicTree
impl UnwindSafe for b3DynamicTree
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