[][src]Struct smth::Vec3

#[repr(C)]pub struct Vec3<T> {
    pub x: T,
    pub y: T,
    pub z: T,
}

Fields

x: Ty: Tz: T

Implementations

impl<T> Vec3<T>[src]

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

impl<T: Scalar> Vec3<T>[src]

pub fn of(v: T) -> Self[src]

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

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

pub fn min_component(self) -> T[src]

pub fn max_component(self) -> T[src]

impl<T: Number> Vec3<T>[src]

pub const ZERO: Self[src]

pub const X: Self[src]

pub const Y: Self[src]

pub const Z: Self[src]

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

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

pub fn len2(self) -> T[src]

pub fn distance2(self, other: Self) -> T[src]

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

impl<T: Signed> Vec3<T>[src]

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

impl<T: Float> Vec3<T>[src]

pub fn len(self) -> T[src]

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

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

Trait Implementations

impl<T: Number> Add<Vec3<T>> for Vec3<T>[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: Number> AddAssign<Vec3<T>> for Vec3<T>[src]

impl<T: Clone> Clone for Vec3<T>[src]

impl<T: Copy> Copy for Vec3<T>[src]

impl<T: Debug> Debug for Vec3<T>[src]

impl<T: Default> Default for Vec3<T>[src]

impl<'de, T> Deserialize<'de> for Vec3<T> where
    T: Deserialize<'de>, 
[src]

impl<T: Number> Div<T> for Vec3<T>[src]

type Output = Self

The resulting type after applying the / operator.

impl<T: Number> Div<Vec3<T>> for Vec3<T>[src]

type Output = Self

The resulting type after applying the / operator.

impl<T: Number> DivAssign<T> for Vec3<T>[src]

impl<T: Number> DivAssign<Vec3<T>> for Vec3<T>[src]

impl<T: Number> Mul<T> for Vec3<T>[src]

type Output = Self

The resulting type after applying the * operator.

impl<T: Number> Mul<Vec3<T>> for Vec3<T>[src]

type Output = Self

The resulting type after applying the * operator.

impl<T: Number> MulAssign<T> for Vec3<T>[src]

impl<T: Number> MulAssign<Vec3<T>> for Vec3<T>[src]

impl<T: Signed> Neg for Vec3<T>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: PartialEq> PartialEq<Vec3<T>> for Vec3<T>[src]

impl<T> Serialize for Vec3<T> where
    T: Serialize
[src]

impl<T> StructuralPartialEq for Vec3<T>[src]

impl<T: Number> Sub<Vec3<T>> for Vec3<T>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: Number> SubAssign<Vec3<T>> for Vec3<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Vec3<T> where
    T: RefUnwindSafe

impl<T> Send for Vec3<T> where
    T: Send

impl<T> Sync for Vec3<T> where
    T: Sync

impl<T> Unpin for Vec3<T> where
    T: Unpin

impl<T> UnwindSafe for Vec3<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.