[][src]Struct glam::f32::Vec3

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

Methods

impl Vec3[src]

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

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

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

impl Vec3[src]

pub fn zero() -> Self[src]

pub fn one() -> Self[src]

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

pub fn unit_x() -> Self[src]

pub fn unit_y() -> Self[src]

pub fn unit_z() -> Self[src]

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

pub fn extend(self, w: f32) -> Vec4[src]

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

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

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

pub fn z(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 dot(self, rhs: Self) -> f32[src]

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

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

pub fn length_squared(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) -> Vec3b[src]

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

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

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

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

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

Trait Implementations

impl AsMut<[f32; 3]> for Vec3[src]

impl PartialEq<Vec3> for Vec3[src]

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

This method tests for !=.

impl Copy for Vec3[src]

impl Clone for Vec3[src]

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

Performs copy-assignment from source. Read more

impl PartialOrd<Vec3> for Vec3[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; 3]> for Vec3[src]

impl From<Vec3> for __m128[src]

impl From<__m128> for Vec3[src]

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

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

impl From<[f32; 3]> for Vec3[src]

impl From<Vec3> for [f32; 3][src]

impl Default for Vec3[src]

impl Debug for Vec3[src]

impl Display for Vec3[src]

impl Sub<Vec3> for Vec3[src]

type Output = Self

The resulting type after applying the - operator.

impl Add<Vec3> for Vec3[src]

type Output = Self

The resulting type after applying the + operator.

impl Mul<Vec3> for Mat3[src]

type Output = Vec3

The resulting type after applying the * operator.

impl<'_> Mul<&'_ Vec3> for Mat3[src]

type Output = Vec3

The resulting type after applying the * operator.

impl Mul<Vec3> for Quat[src]

type Output = Vec3

The resulting type after applying the * operator.

impl Mul<Vec3> for Vec3[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<f32> for Vec3[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Vec3> for f32[src]

type Output = Vec3

The resulting type after applying the * operator.

impl Div<Vec3> for Vec3[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<f32> for Vec3[src]

type Output = Self

The resulting type after applying the / operator.

impl Neg for Vec3[src]

type Output = Self

The resulting type after applying the - operator.

impl AddAssign<Vec3> for Vec3[src]

impl SubAssign<Vec3> for Vec3[src]

impl MulAssign<Vec3> for Vec3[src]

impl MulAssign<f32> for Vec3[src]

impl DivAssign<Vec3> for Vec3[src]

impl DivAssign<f32> for Vec3[src]

impl Distribution<Vec3> 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<Vec3> for Vec3[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<Vec3> for Vec3[src]

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

The inverse of ApproxEq::relative_eq.

impl UlpsEq<Vec3> for Vec3[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 Vec3

impl Sync for Vec3

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]