Struct mold2d::vector::Vector2D [] [src]

pub struct Vector2D {
    pub x: f64,
    pub y: f64,
}

A two-dimensional vector

Fields

Methods

impl Vector2D
[src]

Returns the length of a vector

Returns a normalized vector

Trait Implementations

impl Clone for Vector2D
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Vector2D
[src]

impl Debug for Vector2D
[src]

Formats the value using the given formatter.

impl PartialEq for Vector2D
[src]

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

This method tests for !=.

impl Add<Vector2D> for Vector2D
[src]

The resulting type after applying the + operator

The method for the + operator

impl Add<f64> for Vector2D
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<Vector2D> for Vector2D
[src]

The resulting type after applying the - operator

The method for the - operator

impl Sub<f64> for Vector2D
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<Vector2D> for Vector2D
[src]

The resulting type after applying the * operator

The method for the * operator

impl Mul<f64> for Vector2D
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div<Vector2D> for Vector2D
[src]

The resulting type after applying the / operator

The method for the / operator

impl Div<f64> for Vector2D
[src]

The resulting type after applying the / operator

The method for the / operator