pub struct Moments {
pub moment_x: f64,
pub moment_y: f64,
pub moment_xx: f64,
pub moment_xy: f64,
pub moment_yy: f64,
}
Expand description
A collect of moment integrals for a path, used for computing shape properties like area, centroid, and inertia.
The moments are computed using Green’s theorem, which relates the integrals of a function over a closed curve to the integrals of its partial derivatives over the region enclosed by the curve.
Fields§
§moment_x: f64
The first moment of area about the x-axis.
moment_y: f64
The first moment of area about the y-axis.
moment_xx: f64
The second moment of area about the x-axis (also known as the area moment of inertia about the x-axis).
moment_xy: f64
The second moment of area about the xy-axis (also known as the product of inertia).
moment_yy: f64
The second moment of area about the y-axis (also known as the area moment of inertia about the y-axis).
Trait Implementations§
impl Copy for Moments
Auto Trait Implementations§
impl Freeze for Moments
impl RefUnwindSafe for Moments
impl Send for Moments
impl Sync for Moments
impl Unpin for Moments
impl UnwindSafe for Moments
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