re_types/archetypes/arrows2d_ext.rs
1use crate::components::Vector2D;
2
3use super::Arrows2D;
4
5impl Arrows2D {
6 /// Creates new 2D arrows pointing in the given directions, with a base at the origin (0, 0).
7 #[inline]
8 pub fn from_vectors(vectors: impl IntoIterator<Item = impl Into<Vector2D>>) -> Self {
9 Self::new(vectors)
10 }
11}