pub struct Vec3f {
pub x: f32,
pub y: f32,
pub z: f32,
}Expand description
A 3D vector of f32 values.
Used in the Minecraft protocol for positions, velocities, and directions with single-precision floating point. Common in entity movement and particle effects.
Wire format: three big-endian f32 values (x, y, z), 12 bytes total.
Fields§
§x: f32§y: f32§z: f32Trait Implementations§
Source§impl EncodedSize for Vec3f
A Vec3f always occupies 12 bytes (3 × f32).
impl EncodedSize for Vec3f
A Vec3f always occupies 12 bytes (3 × f32).
fn encoded_size(&self) -> usize
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