pub struct FieldSample {
pub force: Vec3,
pub temperature: f32,
pub entropy: f32,
pub field_count: usize,
}Expand description
The aggregated effect of all fields at a position.
Fields§
§force: Vec3Total force vector to apply.
temperature: f32Total temperature contribution (from HeatSources).
entropy: f32Total entropy contribution.
field_count: usizeNumber of fields that contributed.
Trait Implementations§
Source§impl Clone for FieldSample
impl Clone for FieldSample
Source§fn clone(&self) -> FieldSample
fn clone(&self) -> FieldSample
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldSample
impl Debug for FieldSample
Auto Trait Implementations§
impl Freeze for FieldSample
impl RefUnwindSafe for FieldSample
impl Send for FieldSample
impl Sync for FieldSample
impl Unpin for FieldSample
impl UnsafeUnpin for FieldSample
impl UnwindSafe for FieldSample
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