pub struct Vec2f {
pub x: f32,
pub y: f32,
}Expand description
A 2D vector of f32 values.
Used in the Minecraft protocol for 2D positions and velocities, such as player movement input and rotation deltas.
Wire format: two big-endian f32 values (x, y), 8 bytes total.
Fields§
§x: f32§y: f32Trait Implementations§
Source§impl EncodedSize for Vec2f
A Vec2f always occupies 8 bytes (2 × f32).
impl EncodedSize for Vec2f
A Vec2f always occupies 8 bytes (2 × f32).
fn encoded_size(&self) -> usize
impl Copy for Vec2f
impl StructuralPartialEq for Vec2f
Auto Trait Implementations§
impl Freeze for Vec2f
impl RefUnwindSafe for Vec2f
impl Send for Vec2f
impl Sync for Vec2f
impl Unpin for Vec2f
impl UnsafeUnpin for Vec2f
impl UnwindSafe for Vec2f
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