Struct glsl_layout::vec3 [−][src]
pub struct vec3(_);
Vector of 3 float
values.
foo: vec3
is equivalent to glsl's vec3 foo;
Examples
let x: vec3 = [1f32; 3].into();
Trait Implementations
impl Clone for vec3
[src]
impl Clone for vec3
fn clone(&self) -> vec3
[src]
fn clone(&self) -> vec3
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for vec3
[src]
impl Copy for vec3
impl Debug for vec3
[src]
impl Debug for vec3
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for vec3
[src]
impl Default for vec3
impl PartialOrd for vec3
[src]
impl PartialOrd for vec3
fn partial_cmp(&self, other: &vec3) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &vec3) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &vec3) -> bool
[src]
fn lt(&self, other: &vec3) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &vec3) -> bool
[src]
fn le(&self, other: &vec3) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &vec3) -> bool
[src]
fn gt(&self, other: &vec3) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &vec3) -> bool
[src]
fn ge(&self, other: &vec3) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for vec3
[src]
impl PartialEq for vec3
fn eq(&self, other: &vec3) -> bool
[src]
fn eq(&self, other: &vec3) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &vec3) -> bool
[src]
fn ne(&self, other: &vec3) -> bool
This method tests for !=
.
impl<T> From<[T; 3]> for vec3 where
T: Into<float>,
[src]
impl<T> From<[T; 3]> for vec3 where
T: Into<float>,
impl AsRef<[float; 3]> for vec3
[src]
impl AsRef<[float; 3]> for vec3
impl AsMut<[float; 3]> for vec3
[src]
impl AsMut<[float; 3]> for vec3
impl AsRef<[float]> for vec3
[src]
impl AsRef<[float]> for vec3
impl AsMut<[float]> for vec3
[src]
impl AsMut<[float]> for vec3
impl Std140 for vec3
[src]
impl Std140 for vec3
impl Uniform for vec3
[src]
impl Uniform for vec3