pub struct Bounds {
pub center: [f32; 3],
pub radius: f32,
pub cone_apex: [f32; 3],
pub cone_axis: [f32; 3],
pub cone_cutoff: f32,
pub cone_axis_s8: [i8; 3],
pub cone_cutoff_s8: i8,
}Expand description
Meaningful fields of meshopt_Bounds, without native padding.
Fields§
§center: [f32; 3]Sphere center.
radius: f32Sphere radius.
cone_apex: [f32; 3]Perspective normal-cone apex.
cone_axis: [f32; 3]Unit normal-cone axis.
cone_cutoff: f32Cone culling cutoff.
cone_axis_s8: [i8; 3]Conservative signed-normalized axis.
cone_cutoff_s8: i8Conservative signed-normalized cutoff.
Trait Implementations§
impl Copy for Bounds
impl StructuralPartialEq for Bounds
Auto Trait Implementations§
impl Freeze for Bounds
impl RefUnwindSafe for Bounds
impl Send for Bounds
impl Sync for Bounds
impl Unpin for Bounds
impl UnsafeUnpin for Bounds
impl UnwindSafe for Bounds
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more