[][src]Trait plexus::primitive::generate::AttributeVertexGenerator

pub trait AttributeVertexGenerator<A>: AttributeGenerator<A> where
    A: Attribute
{ type Output; fn vertex_count(&self) -> usize;
fn vertex_from(&self, state: &Self::State, index: usize) -> Self::Output; }

Associated Types

type Output

Loading content...

Required methods

fn vertex_count(&self) -> usize

fn vertex_from(&self, state: &Self::State, index: usize) -> Self::Output

Loading content...

Implementors

impl AttributeVertexGenerator<Plane> for Cube[src]

type Output = Plane

impl<S> AttributeVertexGenerator<Normal<S>> for Cube where
    S: EuclideanSpace + FiniteDimensional<N = U3>, 
[src]

type Output = Unit<Vector<S>>

impl<S> AttributeVertexGenerator<Normal<S>> for UvSphere where
    S: EuclideanSpace + FiniteDimensional<N = U3>,
    Scalar<S>: FloatConst
[src]

type Output = Unit<Vector<S>>

impl<S> AttributeVertexGenerator<Position<S>> for Cube where
    S: EuclideanSpace + FiniteDimensional<N = U3>, 
[src]

type Output = S

impl<S> AttributeVertexGenerator<Position<S>> for UvSphere where
    S: EuclideanSpace + FiniteDimensional<N = U3>,
    Scalar<S>: FloatConst
[src]

type Output = S

Loading content...