#[repr(C)]pub struct AabbClipPlane {
pub normal: [i16; 3],
pub kind: u8,
pub signbits: u8,
pub distance: i32,
}Expand description
Four-byte-aligned plane record used by the GTE AABB clip batch.
This layout deliberately matches retained engines that store
(normal, kind, signbits, distance). kind remains caller-owned, while
signbits caches the negative-normal mask (x | y << 1 | z << 2) used to
select AABB support points without rereading the normal components.
Fields§
§normal: [i16; 3]Signed Q12 plane normal.
kind: u8Caller-owned plane kind or axial classification.
signbits: u8Negative-normal mask (x | y << 1 | z << 2).
distance: i32Q12 plane distance.
Trait Implementations§
Source§impl Clone for AabbClipPlane
impl Clone for AabbClipPlane
Source§fn clone(&self) -> AabbClipPlane
fn clone(&self) -> AabbClipPlane
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AabbClipPlane
impl Debug for AabbClipPlane
Source§impl Default for AabbClipPlane
impl Default for AabbClipPlane
Source§fn default() -> AabbClipPlane
fn default() -> AabbClipPlane
Returns the “default value” for a type. Read more
Source§impl PartialEq for AabbClipPlane
impl PartialEq for AabbClipPlane
impl Copy for AabbClipPlane
impl Eq for AabbClipPlane
impl StructuralPartialEq for AabbClipPlane
Auto Trait Implementations§
impl Freeze for AabbClipPlane
impl RefUnwindSafe for AabbClipPlane
impl Send for AabbClipPlane
impl Sync for AabbClipPlane
impl Unpin for AabbClipPlane
impl UnsafeUnpin for AabbClipPlane
impl UnwindSafe for AabbClipPlane
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)