[][src]Struct simpler_vector::Vec3

pub struct Vec3 {
    pub x: f64,
    pub y: f64,
    pub z: f64,
}

Fields

x: f64y: f64z: f64

Methods

impl Vec3[src]

pub fn zero() -> Self[src]

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

pub fn dot(self, other: Self) -> f64[src]

pub fn modulus(self) -> f64[src]

pub fn distance(self, other: Self) -> f64[src]

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

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

Trait Implementations

impl Clone for Vec3[src]

impl Copy for Vec3[src]

impl Add<Vec3> for Vec3[src]

type Output = Self

The resulting type after applying the + operator.

impl Sub<Vec3> for Vec3[src]

type Output = Self

The resulting type after applying the - operator.

impl Mul<f64> for Vec3[src]

type Output = Self

The resulting type after applying the * operator.

impl Div<f64> for Vec3[src]

type Output = Self

The resulting type after applying the / operator.

impl Debug for Vec3[src]

Auto Trait Implementations

impl Send for Vec3

impl Unpin for Vec3

impl Sync for Vec3

impl UnwindSafe for Vec3

impl RefUnwindSafe 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> 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]