Struct xmath::Vector3 [] [src]

pub struct Vector3 {
    pub x: f32,
    pub y: f32,
    pub z: f32,
    // some fields omitted
}

Fields

x
y
z

Methods

impl Vector3

fn new(x: f32, y: f32, z: f32) -> Self

Trait Implementations

impl Vector for Vector3

fn zero() -> Self

fn one() -> Self

fn infinity() -> Self

fn nan() -> Self

fn epsilon() -> Self

fn replicate(value: f32) -> Self

fn swizzle(&self, e0: usize, e1: usize, e2: usize, _e3: usize) -> Self

fn permute(&self, other: &Self, permute_x: usize, permute_y: usize, permute_z: usize, _permute_w: usize) -> Self

fn transform(&self, matrix: &Matrix) -> Self

fn min(&self, other: &Self) -> Self

fn max(&self, other: &Self) -> Self

fn round(&self) -> Self

fn trunc(&self) -> Self

fn floor(&self) -> Self

fn ceil(&self) -> Self

fn clamp(&self, min: &Self, max: &Self) -> Self

fn multiply_add(&self, mul: &Self, add: &Self) -> Self

fn splat_x(&self) -> Self

fn splat_y(&self) -> Self

fn splat_z(&self) -> Self

fn splat_w(&self) -> Self

impl Add for Vector3

type Output = Self

fn add(self, rhs: Vector3) -> Self::Output

impl AddAssign for Vector3

fn add_assign(&mut self, rhs: Self)

impl Sub for Vector3

type Output = Self

fn sub(self, rhs: Vector3) -> Self::Output

impl SubAssign for Vector3

fn sub_assign(&mut self, rhs: Self)

impl Div for Vector3

type Output = Self

fn div(self, rhs: Vector3) -> Self::Output

impl DivAssign for Vector3

fn div_assign(&mut self, rhs: Self)

impl Div<f32> for Vector3

type Output = Self

fn div(self, rhs: f32) -> Self::Output

impl DivAssign<f32> for Vector3

fn div_assign(&mut self, rhs: f32)

impl Mul for Vector3

type Output = Self

fn mul(self, rhs: Vector3) -> Self::Output

impl MulAssign for Vector3

fn mul_assign(&mut self, rhs: Self)

impl Mul<f32> for Vector3

type Output = Self

fn mul(self, rhs: f32) -> Self::Output

impl MulAssign<f32> for Vector3

fn mul_assign(&mut self, rhs: f32)

impl Neg for Vector3

type Output = Self

fn neg(self) -> Self::Output

impl Index<usize> for Vector3

type Output = f32

fn index<'a>(&'a self, index: usize) -> &'a Self::Output

impl From<Row> for Vector3

fn from(row: Row) -> Self

Derived Implementations

impl Debug for Vector3

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Vector3

fn eq(&self, __arg_0: &Vector3) -> bool

fn ne(&self, __arg_0: &Vector3) -> bool

impl Copy for Vector3

impl Clone for Vector3

fn clone(&self) -> Vector3

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