1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
use alga::general::Real;
use shape::Triangle;
use procedural::Polyline;
use super::ToPolyline;

impl<N: Real> ToPolyline<N> for Triangle<N> {
    type DiscretizationParameter = ();

    fn to_polyline(&self, _: ()) -> Polyline<N> {
        Polyline::new(vec![*self.a(), *self.b(), *self.c()], None)
    }
}