Struct vmath::vec::Vec2 [] [src]

pub struct Vec2 {
    pub x: f32,
    pub y: f32,
}

Fields

Methods

impl Vec2
[src]

[src]

Trait Implementations

impl Clone for Vec2
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Vec2
[src]

impl Debug for Vec2
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Vec2
[src]

[src]

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

[src]

This method tests for !=.

impl Add<Vec2> for Vec2
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Vec2> for Vec2
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul<Vec2> for Vec2
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<Vec2> for Vec2
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Neg for Vec2
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.