[][src]Type Definition arcs::Vector

type Vector = Vector2D<f64, DrawingSpace>;

A 2D vector for working in DrawingSpace.

Trait Implementations

impl Length for Vector[src]

fn length(&self) -> f64[src]

Calculates the Vector's magnitude.

let vector = Vector::new(3.0, 4.0);

assert_eq!(vector.length(), 5.0);