pub struct vec2(/* private fields */);
Expand description
Vector of 2 float
values.
foo: vec2
is equivalent to glsl’s vec2 foo;
§Examples
let x: vec2 = [1f32; 2].into();
Trait Implementations§
Source§impl PartialOrd for vec2
impl PartialOrd for vec2
impl Copy for vec2
impl StructuralPartialEq for vec2
Auto Trait Implementations§
impl Freeze for vec2
impl RefUnwindSafe for vec2
impl Send for vec2
impl Sync for vec2
impl Unpin for vec2
impl UnwindSafe for vec2
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