[][src]Struct nphysics2d::fluid::Fluid

pub struct Fluid<N: RealField> {
    pub positions: Vec<Point<N>>,
    pub velocities: Vec<Vector<N>>,
    pub volumes: DVector<N>,
    pub density0: N,
    // some fields omitted
}

Fields

positions: Vec<Point<N>>velocities: Vec<Vector<N>>volumes: DVector<N>density0: N

Methods

impl<N: RealField> Fluid<N>[src]

pub fn new(
    particle_positions: Vec<Point<N>>,
    particle_volume: N,
    density0: N
) -> Self
[src]

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

pub fn set_assembly_id(&mut self, id: usize)[src]

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

Auto Trait Implementations

impl<N> Send for Fluid<N> where
    N: Scalar

impl<N> Unpin for Fluid<N> where
    N: Scalar + Unpin

impl<N> Sync for Fluid<N> where
    N: Scalar

impl<N> UnwindSafe for Fluid<N> where
    N: Scalar + UnwindSafe

impl<N> RefUnwindSafe for Fluid<N> where
    N: RefUnwindSafe + Scalar

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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