Struct gamemath::vec2::Vec2[][src]

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

Fields

Methods

impl Vec2
[src]

Trait Implementations

impl Clone for Vec2
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Vec2
[src]

impl Debug for Vec2
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Vec2
[src]

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

This method tests for !=.

impl Default for Vec2
[src]

Returns the "default value" for a type. Read more

impl From<(f32, f32)> for Vec2
[src]

Performs the conversion.

impl From<[f32; 2]> for Vec2
[src]

Performs the conversion.

impl From<Vec3> for Vec2
[src]

Performs the conversion.

impl From<Vec4> for Vec2
[src]

Performs the conversion.

impl From<f32> for Vec2
[src]

Performs the conversion.

impl Index<usize> for Vec2
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<usize> for Vec2
[src]

Performs the mutable indexing (container[index]) operation.

impl Add for Vec2
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign for Vec2
[src]

Performs the += operation.

impl Sub for Vec2
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl SubAssign for Vec2
[src]

Performs the -= operation.

impl Mul<f32> for Vec2
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl MulAssign<f32> for Vec2
[src]

Performs the *= operation.

impl Neg for Vec2
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl From<Vec2> for Vec3
[src]

Performs the conversion.

impl From<Vec2> for Vec4
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Vec2

impl Sync for Vec2