pub struct TaperedCapsule {
pub height: f32,
pub radius1: [f32; 2],
pub radius2: [f32; 2],
pub extra: Vec<Extra>,
}Expand description
Describes a tapered capsule primitive that is centered on, and aligned with, the local y axis.
Fields§
§height: f32The length of the line segment connecting the centers of the capping hemispheres.
radius1: [f32; 2]The radii of the tapered capsule at the positive (height/2) Y value. Both ends of the tapered capsule may be elliptical.
radius2: [f32; 2]The radii of the tapered capsule at the negative (height/2) Y value. Both ends of the tapered capsule may be elliptical.
extra: Vec<Extra>Provides arbitrary additional information about this element.
Implementations§
Trait Implementations§
Source§impl Clone for TaperedCapsule
impl Clone for TaperedCapsule
Source§fn clone(&self) -> TaperedCapsule
fn clone(&self) -> TaperedCapsule
Returns a duplicate 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 TaperedCapsule
impl Debug for TaperedCapsule
Source§impl From<TaperedCapsule> for ShapeGeom
impl From<TaperedCapsule> for ShapeGeom
Source§fn from(v: TaperedCapsule) -> Self
fn from(v: TaperedCapsule) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TaperedCapsule
impl RefUnwindSafe for TaperedCapsule
impl Send for TaperedCapsule
impl Sync for TaperedCapsule
impl Unpin for TaperedCapsule
impl UnwindSafe for TaperedCapsule
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