pub struct PhysicalProperties {
pub volume_mm3: Option<f64>,
pub area_mm2: f64,
pub centre_mm: [f64; 3],
pub approximate: bool,
}Expand description
A body’s measure: its volume, surface area and centre of mass, exact where the kernel has a closed form for its faces.
Fields§
§volume_mm3: Option<f64>Enclosed volume in mm³; None when the shape encloses none (an open
shell, a sheet) or its shell is wound inside out.
area_mm2: f64Total surface area in mm².
centre_mm: [f64; 3]Centre of mass at uniform density, in mm; the centre of the surface when there is no volume.
approximate: boolSome face had no closed form, so the figures were integrated over a tessellation and are close rather than exact (within a fraction of a percent on curved walls).
Trait Implementations§
Source§impl Clone for PhysicalProperties
impl Clone for PhysicalProperties
impl Copy for PhysicalProperties
Source§impl Debug for PhysicalProperties
impl Debug for PhysicalProperties
Source§impl Default for PhysicalProperties
impl Default for PhysicalProperties
Source§impl<'de> Deserialize<'de> for PhysicalProperties
impl<'de> Deserialize<'de> for PhysicalProperties
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PhysicalProperties
impl PartialEq for PhysicalProperties
Source§impl Serialize for PhysicalProperties
impl Serialize for PhysicalProperties
impl StructuralPartialEq for PhysicalProperties
Auto Trait Implementations§
impl Freeze for PhysicalProperties
impl RefUnwindSafe for PhysicalProperties
impl Send for PhysicalProperties
impl Sync for PhysicalProperties
impl Unpin for PhysicalProperties
impl UnsafeUnpin for PhysicalProperties
impl UnwindSafe for PhysicalProperties
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