[][src]Trait solstice_2d::Geometry

pub trait Geometry {
    type Vertices: Iterator<Item = Vertex2D>;
    type Indices: Iterator<Item = u32>;
    fn vertices(&self) -> Self::Vertices;
fn indices(&self) -> Self::Indices; }

Associated Types

type Vertices: Iterator<Item = Vertex2D>

type Indices: Iterator<Item = u32>

Loading content...

Required methods

fn vertices(&self) -> Self::Vertices

fn indices(&self) -> Self::Indices

Loading content...

Implementors

impl Geometry for Rectangle[src]

type Vertices = IntoIter<Vertex2D>

type Indices = Copied<Iter<'static, u32>>

impl<T: SimpleConvexGeometry> Geometry for T[src]

type Vertices = T::Vertices

type Indices = FlatMap<Range<u32>, ArrayVec<[u32; 3]>, fn(_: u32) -> ArrayVec<[u32; 3]>>

Loading content...