[][src]Trait solstice_2d::Geometry

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

Associated Types

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

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

Loading content...

Required methods

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

pub 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 = Map<IntoIter<Point3D>, fn(_: Point3D) -> Vertex3D>

type Indices = Map<Enumerate<Self::Vertices>, fn(_: (usize, Vertex3D)) -> 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...