Trait Geometry
solstice_2d
pub trait Geometry { type Vertices: Iterator<Item = Vertex2D>; type Indices: Iterator<Item = u32>; fn vertices(&self) -> Self::Vertices; fn indices(&self) -> Self::Indices; }
type Vertices: Iterator<Item = Vertex2D>
type Indices: Iterator<Item = u32>
fn vertices(&self) -> Self::Vertices
fn indices(&self) -> Self::Indices
impl Geometry for Rectangle
type Vertices = IntoIter<Vertex2D>
type Indices = Copied<Iter<'static, u32>>
impl<T: SimpleConvexGeometry> Geometry for T
type Vertices = T::Vertices
type Indices = FlatMap<Range<u32>, ArrayVec<[u32; 3]>, fn(_: u32) -> ArrayVec<[u32; 3]>>