[][src]Struct mutiny::geometry::Geometry

pub struct Geometry<T: 'static + Clone> { /* fields omitted */ }

Methods

impl<T: 'static + Clone> Geometry<T>
[src]

Methods from Deref<Target = Mesh<T>>

Set the mesh vertices

Set the mesh vertices

Iterator over the mesh vertices in the order they where inserted

Mutable iterator over the mesh vertices in the order they where inserted

Pop the last vertex

Push a vertex at the end of the mesh

Extend the mesh with a slice of new vertices

Extend the mesh with another mesh

The vertices and indices will just be inserted at the end without taking into account the primitive types

Extend the mesh with an iterator of new vertices

Insert a vertex at a certain position

Mutably get the vertex at the specified position.

Will panic if the vertex doesn't exist

Reserve as much capacity for vertices

Unsafe operation that sets the len of the vertices collection

Truncate the mesh vertices at the specified len

Last vertex if there's any

Last vertex mutably if there's any

Primitive type

Add a triangle face (only for Triangles primitive type)

Clear the mesh vertices and indices

Clear the vertices

Clear the indices

Number of vertices

Contains any vertices

Trait Implementations

impl<T: 'static + Clone> Debug for Geometry<T>
[src]

impl<T: 'static + Clone> Deref for Geometry<T>
[src]

The resulting type after dereferencing.

impl<T: 'static + Clone> DerefMut for Geometry<T>
[src]

impl<T: 'static + Clone> Component for Geometry<T>
[src]

impl<'a, T: 'static + Clone> DebugParameter for Geometry<T>
[src]

Auto Trait Implementations

impl<T> Send for Geometry<T> where
    T: Send

impl<T> Sync for Geometry<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<C> ComponentSend for C where
    C: Component + Send
[src]

impl<C> ComponentThreadLocal for C where
    C: Component
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<T> Same for T
[src]

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<V> IntoVec for V
[src]

impl<V> IntoPnt for V
[src]

impl<B, P> IntoControlBuilder for P where
    B: BuilderFromProperty<P>, 
[src]

impl<T, U> IntoDuration for T where
    U: FromDuration<T>, 
[src]