pub struct MassSummary {
pub volume: Bounded,
pub area: Bounded,
pub center: Option<[Bounded; 3]>,
pub inertial: Option<Inertial>,
pub converged: bool,
}Expand description
Mass properties as shown, in millimetres and kilograms: the volume
(mm³), the area of the boundary (mm²) and the centroid (mm) — what the
shape decides — and, of a material, what it weighs (Inertial).
Fields§
§volume: Bounded§area: Bounded§center: Option<[Bounded; 3]>The centre of volume, which of a uniform material is the centre of mass; of several solids, the mean weighted by mass where every one has a material and by volume where none does. None for solids of which only some have one: neither mean would be their centre.
inertial: Option<Inertial>None where there is no material (or only some solids have one).
converged: boolWhether every integral came within its tolerance (see
geop_core_math::quadrature): when not, the bounds are wider.
Trait Implementations§
Source§impl Clone for MassSummary
impl Clone for MassSummary
Source§fn clone(&self) -> MassSummary
fn clone(&self) -> MassSummary
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 moreSource§impl Debug for MassSummary
impl Debug for MassSummary
Auto Trait Implementations§
impl Freeze for MassSummary
impl RefUnwindSafe for MassSummary
impl Send for MassSummary
impl Sync for MassSummary
impl Unpin for MassSummary
impl UnsafeUnpin for MassSummary
impl UnwindSafe for MassSummary
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