#[repr(C)]pub struct ClassicNormalizedVector {
pub vector: Vec3I16,
pub xy_squared: i32,
pub squared: i32,
}Expand description
A direction scaled to Q12 unit length by
normalize_classic_q12_scheduled, with the squared lengths it came
from.
Fields§
§vector: Vec3I16The input direction at length 4096 (Q12 1.0); zero when the squared length is zero or wrapped negative.
xy_squared: i32x * x + y * y of the whole-unit components, wrapping.
squared: i32x * x + y * y + z * z of the whole-unit components, wrapping.
Trait Implementations§
Source§impl Clone for ClassicNormalizedVector
impl Clone for ClassicNormalizedVector
Source§fn clone(&self) -> ClassicNormalizedVector
fn clone(&self) -> ClassicNormalizedVector
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 ClassicNormalizedVector
impl Debug for ClassicNormalizedVector
Source§impl Default for ClassicNormalizedVector
impl Default for ClassicNormalizedVector
Source§fn default() -> ClassicNormalizedVector
fn default() -> ClassicNormalizedVector
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClassicNormalizedVector
impl PartialEq for ClassicNormalizedVector
impl Copy for ClassicNormalizedVector
impl Eq for ClassicNormalizedVector
impl StructuralPartialEq for ClassicNormalizedVector
Auto Trait Implementations§
impl Freeze for ClassicNormalizedVector
impl RefUnwindSafe for ClassicNormalizedVector
impl Send for ClassicNormalizedVector
impl Sync for ClassicNormalizedVector
impl Unpin for ClassicNormalizedVector
impl UnsafeUnpin for ClassicNormalizedVector
impl UnwindSafe for ClassicNormalizedVector
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)