pub fn poly_line(points: Vec<impl Into<glam::DVec2>>, style: PathStyle) -> Self {
		let mut path = kurbo::BezPath::new();
		points
			.into_iter()
			.map(|v| v.into())
			.map(|v: DVec2| kurbo::Point { x: v.x, y: v.y })
			.enumerate()
			.for_each(|(i, p)| if i == 0 { path.move_to(p) } else { path.line_to(p) });

		Self {
			path,
			style,
			render_index: 0,
			closed: false,
		}
	}
/// Create a polygonal line that visits each provided point.
Create a polygonal line that visits each provided point.
Create a polygonal line that visits each provided point .
pub fn poly_line(points: Vec<impl Into<glam::DVec2>>, style: PathStyle) -> Self {
		let mut path = kurbo::BezPath::new();
		points
			.into_iter()
			.map(|v| v.into())
			.map(|v: DVec2| kurbo::Point { x: v.x, y: v.y })
			.enumerate()
			.for_each(|(i, p)| if i == 0 { path.move_to(p) } else { path.line_to(p) });
		Self {
			path,
			style,
			render_index: 0,
			closed: false,
		}
	}
pub fn poly_line ( points : Vec < impl Into < glam :: DVec2 > > , style : PathStyle ) -> Self { let mut path = kurbo :: BezPath :: new ( ) ; points . into_iter ( ) . map ( | v | v . into ( ) ) . map ( | v : DVec2 | kurbo :: Point { x : v . x , y : v . y } ) . enumerate ( ) . for_each ( | ( i , p ) | if i == 0 { path . move_to ( p ) } else { path . line_to ( p ) } ) ; Self { path , style , render_index : 0 , closed : false , } }
Create a polygonal line that visits each provided point.
Create a polygonal line that visits each provided point .
points
Vec<impl Into<glam::DVec2>>
style
PathStyle
points
Vec<impl Into<glam::DVec2>>
style
PathStyle