[][src]Struct glam::f32::Vec4

#[repr(C)]
pub struct Vec4(_);

Methods

impl Vec4[src]

pub fn sign(self) -> Self[src]

pub fn reciprocal(self) -> Self[src]

pub fn lerp(self, rhs: Self, s: f32) -> Self[src]

impl Vec4[src]

pub fn new(x: f32, y: f32, z: f32, w: f32) -> Self[src]

pub fn zero() -> Self[src]

pub fn one() -> Self[src]

pub fn unit_x() -> Self[src]

pub fn unit_y() -> Self[src]

pub fn unit_z() -> Self[src]

pub fn unit_w() -> Self[src]

pub fn truncate(self) -> Vec3[src]

pub fn splat(v: f32) -> Self[src]

pub fn x(self) -> f32[src]

pub fn y(self) -> f32[src]

pub fn z(self) -> f32[src]

pub fn w(self) -> f32[src]

pub fn set_x(&mut self, x: f32)[src]

pub fn set_y(&mut self, y: f32)[src]

pub fn set_z(&mut self, z: f32)[src]

pub fn set_w(&mut self, w: f32)[src]

pub fn dot(self, rhs: Self) -> f32[src]

pub fn length(self) -> f32[src]

pub fn length_squared(self) -> f32[src]

pub fn length_reciprocal(self) -> f32[src]

pub fn normalize(self) -> Self[src]

pub fn min(self, rhs: Self) -> Self[src]

pub fn max(self, rhs: Self) -> Self[src]

pub fn min_element(self) -> f32[src]

pub fn max_element(self) -> f32[src]

pub fn cmpeq(self, rhs: Self) -> Vec4b[src]

pub fn cmpne(self, rhs: Self) -> Vec4b[src]

pub fn cmpge(self, rhs: Self) -> Vec4b[src]

pub fn cmpgt(self, rhs: Self) -> Vec4b[src]

pub fn cmple(self, rhs: Self) -> Vec4b[src]

pub fn cmplt(self, rhs: Self) -> Vec4b[src]

pub fn from_slice_unaligned(slice: &[f32]) -> Self[src]

pub fn write_to_slice_unaligned(self, slice: &mut [f32])[src]

Trait Implementations

impl AsMut<[f32; 4]> for Vec4[src]

impl PartialEq<Vec4> for Vec4[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Copy for Vec4[src]

impl Clone for Vec4[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<Vec4> for Vec4[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl AsRef<[f32; 4]> for Vec4[src]

impl From<Vec4> for Quat[src]

impl From<Quat> for Vec4[src]

impl From<Vec4> for __m128[src]

impl From<__m128> for Vec4[src]

impl From<(f32, f32, f32, f32)> for Vec4[src]

impl From<Vec4> for (f32, f32, f32, f32)[src]

impl From<[f32; 4]> for Vec4[src]

impl From<Vec4> for [f32; 4][src]

impl Default for Vec4[src]

impl Debug for Vec4[src]

impl Display for Vec4[src]

impl Sub<Vec4> for Vec4[src]

type Output = Self

The resulting type after applying the - operator.

impl Add<Vec4> for Vec4[src]

type Output = Self

The resulting type after applying the + operator.

impl Mul<Vec4> for Mat4[src]

type Output = Vec4

The resulting type after applying the * operator.

impl Mul<Vec4> for Vec4[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<f32> for Vec4[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Vec4> for f32[src]

type Output = Vec4

The resulting type after applying the * operator.

impl Div<Vec4> for Vec4[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<f32> for Vec4[src]

type Output = Self

The resulting type after applying the / operator.

impl Neg for Vec4[src]

type Output = Self

The resulting type after applying the - operator.

impl AddAssign<Vec4> for Vec4[src]

impl SubAssign<Vec4> for Vec4[src]

impl MulAssign<Vec4> for Vec4[src]

impl MulAssign<f32> for Vec4[src]

impl DivAssign<Vec4> for Vec4[src]

impl DivAssign<f32> for Vec4[src]

impl Distribution<Vec4> for Standard[src]

fn sample_iter<R>(&'a self, rng: &'a mut R) -> DistIter<'a, Self, R, T> where
    R: Rng
[src]

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

impl AbsDiffEq<Vec4> for Vec4[src]

type Epsilon = <f32 as AbsDiffEq>::Epsilon

Used for specifying relative comparisons.

fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool[src]

The inverse of ApproxEq::abs_diff_eq.

impl RelativeEq<Vec4> for Vec4[src]

fn relative_ne(
    &self,
    other: &Rhs,
    epsilon: Self::Epsilon,
    max_relative: Self::Epsilon
) -> bool
[src]

The inverse of ApproxEq::relative_eq.

impl UlpsEq<Vec4> for Vec4[src]

fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool[src]

The inverse of ApproxEq::ulps_eq.

Auto Trait Implementations

impl Send for Vec4

impl Sync for Vec4

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]