[][src]Type Definition arcs::Line

type Line = Line<DrawingSpace>;

Trait Implementations

impl AffineTransformable<DrawingSpace> for Line[src]

impl Approximate for Line[src]

type Iter = Chain<Once<Point>, Once<Point>>

An iterator over the approximated vertices.

impl Bounded for Line[src]

impl ClosestPoint for Line[src]

impl Length for Line[src]

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

Calculates the length of the line.

let line = Line::new(Point::zero(), Point::new(5.0, 0.0));

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