[−][src]Struct cyclone2d::contact_generators::RodConstraint
A rod simulates a hard constraint where the distance of two particles
can not be above or below the length specified. This version may be
anchored to any point specified by a Vec2d
Implementations
impl RodConstraint
[src]
pub fn new(
particle: NonNull<Particle>,
anchor: Vec2d<FP>,
length: FP,
restitution: FP
) -> RodConstraint
[src]
particle: NonNull<Particle>,
anchor: Vec2d<FP>,
length: FP,
restitution: FP
) -> RodConstraint
Trait Implementations
impl ContactGenerator for RodConstraint
[src]
Auto Trait Implementations
impl RefUnwindSafe for RodConstraint
impl !Send for RodConstraint
impl !Sync for RodConstraint
impl Unpin for RodConstraint
impl UnwindSafe for RodConstraint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,