Struct onyx::Vec2 [] [src]

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

Fields

Methods

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

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

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

impl<R: PartialEq + Real> PartialEq for Vec2<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 Vec2<R>
[src]

The resulting type after applying the + operator

The method for the + operator

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

The method for the += operator

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

The resulting type after applying the - operator

The method for the - operator

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

The method for the -= operator

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

The resulting type after applying the * operator

The method for the * operator

impl<R: Real> Into<[R; 2]> for Vec2<R>
[src]

Performs the conversion.