Struct onyx::Vec3 [] [src]

pub struct Vec3<R: Real = f32> {
    pub x: R,
    pub y: R,
    pub z: R,
}

Fields

Methods

impl<R: Real> Vec3<R>
[src]

impl<R: Real> Vec3<R>
[src]

Trait Implementations

impl<R: Copy + Real> Copy for Vec3<R>
[src]

impl<R: Clone + Real> Clone for Vec3<R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R: Debug + Real> Debug for Vec3<R>
[src]

Formats the value using the given formatter.

impl<R: PartialEq + Real> PartialEq for Vec3<R>
[src]

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

This method tests for !=.

impl<R: Real> Add<Self> for Vec3<R>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<R: Real> AddAssign<Self> for Vec3<R>
[src]

The method for the += operator

impl<R: Real> Sub<Self> for Vec3<R>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<R: Real> SubAssign<Self> for Vec3<R>
[src]

The method for the -= operator

impl<R: Real> Mul<R> for Vec3<R>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<R: Real> Into<[R; 3]> for Vec3<R>
[src]

Performs the conversion.

impl<R: Real> From<Vec2<R>> for Vec3<R>
[src]

Performs the conversion.