#[repr(C)]pub struct Vector {
pub y: f32,
pub z: f32,
pub x: f32,
}Expand description
3D Vector used in Recast Navigation, correspond to a [f32; 3] This abstraction is provided to combat misunderstanding of point ordering Recast expects y, z, x ordering while many applications use x, y, z ordering
Fields§
§y: f32y component of vector
z: f32z component of vector
x: f32x component of vector
Implementations§
Source§impl Vector
Provides functionality to initialize Vectors compatible with Recast
Additionally provides basic math functions used with 3D Vectors
impl Vector
Provides functionality to initialize Vectors compatible with Recast Additionally provides basic math functions used with 3D Vectors
Trait Implementations§
impl Copy for Vector
impl StructuralPartialEq for Vector
Auto Trait Implementations§
impl Freeze for Vector
impl RefUnwindSafe for Vector
impl Send for Vector
impl Sync for Vector
impl Unpin for Vector
impl UnwindSafe for Vector
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