pub struct Vec3f64 {
pub x: f64,
pub y: f64,
pub z: f64,
}Expand description
A 3D vector of f64 values.
Used in the Minecraft protocol for precise entity positions and world coordinates. Double-precision is needed because Minecraft worlds can be very large (up to 30 million blocks from origin).
Wire format: three big-endian f64 values (x, y, z), 24 bytes total.
Fields§
§x: f64§y: f64§z: f64Trait Implementations§
Source§impl EncodedSize for Vec3f64
A Vec3f64 always occupies 24 bytes (3 × f64).
impl EncodedSize for Vec3f64
A Vec3f64 always occupies 24 bytes (3 × f64).
fn encoded_size(&self) -> usize
impl Copy for Vec3f64
impl StructuralPartialEq for Vec3f64
Auto Trait Implementations§
impl Freeze for Vec3f64
impl RefUnwindSafe for Vec3f64
impl Send for Vec3f64
impl Sync for Vec3f64
impl Unpin for Vec3f64
impl UnsafeUnpin for Vec3f64
impl UnwindSafe for Vec3f64
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