1 2 3 4 5 6 7 8 9 10 11 12
use super::ToPolyline; use crate::procedural::Polyline; use crate::shape::Segment; use alga::general::RealField; impl<N: RealField> ToPolyline<N> for Segment<N> { type DiscretizationParameter = (); fn to_polyline(&self, _: ()) -> Polyline<N> { Polyline::new(vec![*self.a(), *self.b()], None) } }