pub struct RoundedRectangleSection {
pub width: f64,
pub height: f64,
pub radius: f64,
pub n_per_corner: usize,
}Expand description
Rounded rectangle (rectangle with filleted corners).
Fields§
§width: f64§height: f64§radius: f64§n_per_corner: usizeImplementations§
Trait Implementations§
Source§impl Clone for RoundedRectangleSection
impl Clone for RoundedRectangleSection
impl Copy for RoundedRectangleSection
Source§impl Debug for RoundedRectangleSection
impl Debug for RoundedRectangleSection
Source§impl ParametricSection for RoundedRectangleSection
impl ParametricSection for RoundedRectangleSection
Source§fn designation(&self) -> String
fn designation(&self) -> String
Get the section name/designation.
Source§fn build_composite(&self, material: Material) -> CompositeSection
fn build_composite(&self, material: Material) -> CompositeSection
Build the section as a composite section with material groups.
Source§fn mass_per_length(&self, material: &Material) -> f64
fn mass_per_length(&self, material: &Material) -> f64
Get approximate mass per unit length [kg/m].
Source§impl PartialEq for RoundedRectangleSection
impl PartialEq for RoundedRectangleSection
impl StructuralPartialEq for RoundedRectangleSection
Auto Trait Implementations§
impl Freeze for RoundedRectangleSection
impl RefUnwindSafe for RoundedRectangleSection
impl Send for RoundedRectangleSection
impl Sync for RoundedRectangleSection
impl Unpin for RoundedRectangleSection
impl UnsafeUnpin for RoundedRectangleSection
impl UnwindSafe for RoundedRectangleSection
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