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

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

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