pub struct Vec3f { /* private fields */ }Expand description
A 3-component f32 vector with named fields.
Implementations§
Source§impl Vec3f
impl Vec3f
Sourcepub fn length_squared(self) -> f32
pub fn length_squared(self) -> f32
Squared length.
Sourcepub fn normalized(self) -> Self
pub fn normalized(self) -> Self
Unit vector, falling back to +Z if near zero.
Trait Implementations§
impl Copy for Vec3f
impl StructuralPartialEq for Vec3f
Auto Trait Implementations§
impl Freeze for Vec3f
impl RefUnwindSafe for Vec3f
impl Send for Vec3f
impl Sync for Vec3f
impl Unpin for Vec3f
impl UnsafeUnpin for Vec3f
impl UnwindSafe for Vec3f
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