pub struct SampledVoxel {
pub index: usize,
pub i: usize,
pub j: usize,
pub k: usize,
pub weight: f64,
}Expand description
One sampled particle birth site (voxel resolution).
Fields§
§index: usizeFlat volume-element index, x slowest → z fastest.
i: usizeX cell index.
j: usizeY cell index.
k: usizeZ cell index.
weight: f64Birth weight: 1.0 for analog sampling, otherwise
analog_pdf[voxel] / biased_pdf[voxel].
Trait Implementations§
Source§impl Clone for SampledVoxel
impl Clone for SampledVoxel
Source§fn clone(&self) -> SampledVoxel
fn clone(&self) -> SampledVoxel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SampledVoxel
Source§impl Debug for SampledVoxel
impl Debug for SampledVoxel
Source§impl PartialEq for SampledVoxel
impl PartialEq for SampledVoxel
impl StructuralPartialEq for SampledVoxel
Auto Trait Implementations§
impl Freeze for SampledVoxel
impl RefUnwindSafe for SampledVoxel
impl Send for SampledVoxel
impl Sync for SampledVoxel
impl Unpin for SampledVoxel
impl UnsafeUnpin for SampledVoxel
impl UnwindSafe for SampledVoxel
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