Struct glsl_layout2::dvec2
source · pub struct dvec2(_);
Expand description
Vector of 2 double
value.
foo: dvec2
is equivalent to glsl’s dvec2 foo;
Examples
let x: dvec2 = [1f32; 2].into();
Trait Implementations§
source§impl PartialEq<dvec2> for dvec2
impl PartialEq<dvec2> for dvec2
source§impl PartialOrd<dvec2> for dvec2
impl PartialOrd<dvec2> for dvec2
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for dvec2
impl StructuralPartialEq for dvec2
Auto Trait Implementations§
impl RefUnwindSafe for dvec2
impl Send for dvec2
impl Sync for dvec2
impl Unpin for dvec2
impl UnwindSafe for dvec2
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