Struct lin::vector::Vector3 [] [src]

pub struct Vector3<N> where
    N: Numeric,
    N: Copy
{ pub x: N, pub y: N, pub z: N, }

A 3D vector of any numeric type.

This is the non-SIMD version.

Fields

Trait Implementations

impl<N: Clone> Clone for Vector3<N> where
    N: Numeric,
    N: Copy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Copy> Copy for Vector3<N> where
    N: Numeric,
    N: Copy
[src]

impl<N: PartialEq> PartialEq for Vector3<N> where
    N: Numeric,
    N: Copy
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<N: PartialOrd> PartialOrd for Vector3<N> where
    N: Numeric,
    N: Copy
[src]

This method returns an ordering between self and other values if one exists. Read more

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

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

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

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

impl<N: Debug> Debug for Vector3<N> where
    N: Numeric,
    N: Copy
[src]

Formats the value using the given formatter.

impl<N> Add<Vector3<N>> for Vector3<N> where
    N: Numeric + Add<Output = N>,
    N: Copy
[src]

The resulting type after applying the + operator

The method for the + operator

impl<N> Add<N> for Vector3<N> where
    N: Numeric + Add<Output = N>,
    N: Copy
[src]

The resulting type after applying the + operator

The method for the + operator

impl<N> Sub<Vector3<N>> for Vector3<N> where
    N: Numeric + Sub<Output = N>,
    N: Copy
[src]

The resulting type after applying the - operator

The method for the - operator

impl<N> Sub<N> for Vector3<N> where
    N: Numeric + Sub<Output = N>,
    N: Copy
[src]

The resulting type after applying the - operator

The method for the - operator

impl<N> Div<Vector3<N>> for Vector3<N> where
    N: Numeric + Div<Output = N>,
    N: Copy
[src]

The resulting type after applying the / operator

The method for the / operator

impl<N> Div<N> for Vector3<N> where
    N: Numeric + Div<Output = N>,
    N: Copy
[src]

The resulting type after applying the / operator

The method for the / operator

impl<N> Mul<Vector3<N>> for Vector3<N> where
    N: Numeric + Mul<Output = N>,
    N: Copy
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N> Mul<N> for Vector3<N> where
    N: Numeric + Mul<Output = N>,
    N: Copy
[src]

The resulting type after applying the * operator

The method for the * operator

impl<N> Rem<Vector3<N>> for Vector3<N> where
    N: Numeric + Rem<Output = N>,
    N: Copy
[src]

The resulting type after applying the % operator

The method for the % operator

impl<N> Rem<N> for Vector3<N> where
    N: Numeric + Rem<Output = N>,
    N: Copy
[src]

The resulting type after applying the % operator

The method for the % operator