[][src]Struct nphysics2d::material::MaterialsCoefficientsTable

pub struct MaterialsCoefficientsTable<N: Real> { /* fields omitted */ }

A lookup table for friction and restitution coefficient associated to certain pairs of materials.

Methods

impl<N: Real> MaterialsCoefficientsTable<N>
[src]

Initialize an empty table of friction and restitution coefficients.

Sets the friction coefficient associated to this pair of materials.

Sets the restitution coefficient associated to this pair of materials.

Retrieves the friction coefficient associated to this pair of materials.

Returns None if no coefficient was associated to this pair.

Retrieves the restitution coefficient associated to this pair of materials.

Returns None if no coefficient was associated to this pair.

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<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<T> Downcast for T where
    T: Any

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Same for T

Should always be Self