pub struct BoxHull {
pub base: HullData,
pub box_vertices: [HullVertex; 8],
pub box_points: [Vec3; 8],
pub box_edges: [HullHalfEdge; 24],
pub box_faces: [HullFace; 6],
pub padding: [u8; 2],
pub box_planes: [Plane; 6],
}Expand description
Efficient box hull with embedded arrays matching C b3BoxHull.
Fields§
§base: HullData§box_vertices: [HullVertex; 8]§box_points: [Vec3; 8]§box_edges: [HullHalfEdge; 24]§box_faces: [HullFace; 6]§padding: [u8; 2]§box_planes: [Plane; 6]Implementations§
Source§impl BoxHull
impl BoxHull
Sourcepub fn as_hull_data(&self) -> HullDataView<'_>
pub fn as_hull_data(&self) -> HullDataView<'_>
View the embedded arrays through the base HullData accessors pattern.
Sourcepub fn sync_base_arrays(&mut self)
pub fn sync_base_arrays(&mut self)
Mirror the embedded box arrays into base’s owned Vecs so
get_hull_points / get_hull_planes work on &box.base, matching
C’s contiguous b3BoxHull layout where offsets point into the same
allocation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoxHull
impl RefUnwindSafe for BoxHull
impl Send for BoxHull
impl Sync for BoxHull
impl Unpin for BoxHull
impl UnsafeUnpin for BoxHull
impl UnwindSafe for BoxHull
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