[][src]Struct eq_wld::Primitive

pub struct Primitive<'a> { /* fields omitted */ }

Implementations

impl<'a> Primitive<'a>[src]

pub fn indices(&self) -> Vec<u32>[src]

Indices of the positions making up this primitive. These refer to positions on the parent mesh.

pub fn positions(&self) -> Vec<[f32; 3]>[src]

pub fn normals(&self) -> Vec<[f32; 3]>[src]

pub fn texture_coordinates(&self) -> Vec<[f32; 2]>[src]

pub fn material(&self) -> Material<'_>[src]

The material that this primitive uses.

pub fn index(&self) -> usize[src]

The index of this primitive in its parent mesh.

Trait Implementations

impl<'a> Debug for Primitive<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Primitive<'a>[src]

impl<'a> Send for Primitive<'a>[src]

impl<'a> Sync for Primitive<'a>[src]

impl<'a> Unpin for Primitive<'a>[src]

impl<'a> UnwindSafe for Primitive<'a>[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.