pub struct BoundingBoxKill {
pub min: [f32; 3],
pub max: [f32; 3],
}Expand description
Kill particles that leave an axis-aligned bounding box.
Fields§
§min: [f32; 3]Minimum corner of the kill-box.
max: [f32; 3]Maximum corner of the kill-box.
Implementations§
Source§impl BoundingBoxKill
impl BoundingBoxKill
Sourcepub fn apply(&self, buffer: &mut ParticleBuffer)
pub fn apply(&self, buffer: &mut ParticleBuffer)
Kill any alive particle whose position is outside \[min, max\].
Auto Trait Implementations§
impl Freeze for BoundingBoxKill
impl RefUnwindSafe for BoundingBoxKill
impl Send for BoundingBoxKill
impl Sync for BoundingBoxKill
impl Unpin for BoundingBoxKill
impl UnsafeUnpin for BoundingBoxKill
impl UnwindSafe for BoundingBoxKill
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more