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