Trait solstice_2d::Geometry[][src]

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

Associated Types

type Vertices: Iterator<Item = V>[src]

type Indices: Iterator<Item = u32>[src]

Loading content...

Required methods

fn vertices(&self) -> Self::Vertices[src]

fn indices(&self) -> Self::Indices[src]

Loading content...

Implementors

impl Geometry<Vertex2D> for Rectangle[src]

type Vertices = IntoIter<Vertex2D>

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

impl Geometry<Vertex3D> for Box[src]

type Vertices = IntoIter<Vertex3D>

type Indices = IntoIter<u32>

impl Geometry<Vertex3D> for Polyhedron[src]

type Vertices = IntoIter<Vertex3D>

type Indices = Range<u32>

impl Geometry<Vertex3D> for Sphere[src]

type Vertices = IntoIter<Vertex3D>

type Indices = IntoIter<u32>

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

type Vertices = T::Vertices

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

Loading content...