pub struct MassProperties {
pub area: Scalar,
pub signed_volume: Scalar,
pub centroid: Point3,
pub second_moment_diagonal: Vec3,
}Expand description
Surface/solid mass properties in local coordinates.
Fields§
§area: ScalarSurface area.
signed_volume: ScalarSigned volume; orientation determines sign.
centroid: Point3Volume centroid.
second_moment_diagonal: Vec3Diagonal of second moments about the origin.
Trait Implementations§
Source§impl Clone for MassProperties
impl Clone for MassProperties
Source§fn clone(&self) -> MassProperties
fn clone(&self) -> MassProperties
Returns a copy 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 MassProperties
impl Debug for MassProperties
Source§impl PartialEq for MassProperties
impl PartialEq for MassProperties
impl Copy for MassProperties
impl StructuralPartialEq for MassProperties
Auto Trait Implementations§
impl Freeze for MassProperties
impl RefUnwindSafe for MassProperties
impl Send for MassProperties
impl Sync for MassProperties
impl Unpin for MassProperties
impl UnwindSafe for MassProperties
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