Struct truck_geometry::decorators::ExtrudedCurve
source · pub struct ExtrudedCurve<C, V> { /* private fields */ }
Expand description
Linearly extruded curve
Implementations§
source§impl<C, V: Copy> ExtrudedCurve<C, V>
impl<C, V: Copy> ExtrudedCurve<C, V>
sourcepub const fn by_extrusion(curve: C, vector: V) -> Self
pub const fn by_extrusion(curve: C, vector: V) -> Self
Creates a linear extruded curve by extrusion.
sourcepub const fn entity_curve(&self) -> &C
pub const fn entity_curve(&self) -> &C
Returns the curve before extruded.
sourcepub fn into_entity_curve(self) -> C
pub fn into_entity_curve(self) -> C
Into the curve before revoluted.
sourcepub const fn extruding_vector(&self) -> V
pub const fn extruding_vector(&self) -> V
Returns the vector of extruded curve.
Trait Implementations§
source§impl<C, V> BoundedSurface for ExtrudedCurve<C, V>where
C: BoundedCurve,
Self: ParametricSurface,
impl<C, V> BoundedSurface for ExtrudedCurve<C, V>where
C: BoundedCurve,
Self: ParametricSurface,
source§impl<C: Clone, V: Clone> Clone for ExtrudedCurve<C, V>
impl<C: Clone, V: Clone> Clone for ExtrudedCurve<C, V>
source§fn clone(&self) -> ExtrudedCurve<C, V>
fn clone(&self) -> ExtrudedCurve<C, V>
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<'de, C, V> Deserialize<'de> for ExtrudedCurve<C, V>where
C: Deserialize<'de>,
V: Deserialize<'de>,
impl<'de, C, V> Deserialize<'de> for ExtrudedCurve<C, V>where
C: Deserialize<'de>,
V: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<C: Invertible> Invertible for ExtrudedCurve<C, Vector3>
impl<C: Invertible> Invertible for ExtrudedCurve<C, Vector3>
source§impl<C: ParameterDivision1D, V> ParameterDivision2D for ExtrudedCurve<C, V>
impl<C: ParameterDivision1D, V> ParameterDivision2D for ExtrudedCurve<C, V>
source§impl<C> ParametricSurface for ExtrudedCurve<C, C::Vector>where
C: ParametricCurve,
C::Point: EuclideanSpace<Scalar = f64, Diff = C::Vector>,
C::Vector: VectorSpace<Scalar = f64>,
impl<C> ParametricSurface for ExtrudedCurve<C, C::Vector>where
C: ParametricCurve,
C::Point: EuclideanSpace<Scalar = f64, Diff = C::Vector>,
C::Vector: VectorSpace<Scalar = f64>,
source§type Point = <C as ParametricCurve>::Point
type Point = <C as ParametricCurve>::Point
The surface is in the space of
Self::Point
.source§type Vector = <C as ParametricCurve>::Vector
type Vector = <C as ParametricCurve>::Vector
The derivation vector of the curve.
source§fn uvder(&self, _: f64, _: f64) -> C::Vector
fn uvder(&self, _: f64, _: f64) -> C::Vector
Returns the 2nd-order derivation by both
u
and v
.source§fn parameter_range(&self) -> (ParameterRange, ParameterRange)
fn parameter_range(&self) -> (ParameterRange, ParameterRange)
The range of the parameter of the surface.
source§fn u_period(&self) -> Option<f64>
fn u_period(&self) -> Option<f64>
None
in default; Some(period)
if periodic w.r.t. parameter u.source§impl<C: ParametricCurve3D> ParametricSurface3D for ExtrudedCurve<C, Vector3>
impl<C: ParametricCurve3D> ParametricSurface3D for ExtrudedCurve<C, Vector3>
source§impl<C: ParametricCurve3D + BoundedCurve> SearchNearestParameter<D2> for ExtrudedCurve<C, Vector3>
impl<C: ParametricCurve3D + BoundedCurve> SearchNearestParameter<D2> for ExtrudedCurve<C, Vector3>
source§impl<C: ParametricCurve2D + BoundedCurve> SearchParameter<D2> for ExtrudedCurve<C, Vector2>
impl<C: ParametricCurve2D + BoundedCurve> SearchParameter<D2> for ExtrudedCurve<C, Vector2>
source§impl<C: ParametricCurve3D + BoundedCurve> SearchParameter<D2> for ExtrudedCurve<C, Vector3>
impl<C: ParametricCurve3D + BoundedCurve> SearchParameter<D2> for ExtrudedCurve<C, Vector3>
source§impl<C, V> Serialize for ExtrudedCurve<C, V>
impl<C, V> Serialize for ExtrudedCurve<C, V>
source§impl<C: Transformed<Matrix4>> Transformed<Matrix4<f64>> for ExtrudedCurve<C, Vector3>
impl<C: Transformed<Matrix4>> Transformed<Matrix4<f64>> for ExtrudedCurve<C, Vector3>
source§fn transform_by(&mut self, trans: Matrix4)
fn transform_by(&mut self, trans: Matrix4)
transform by
trans
.source§fn transformed(&self, trans: Matrix4) -> Self
fn transformed(&self, trans: Matrix4) -> Self
transformed geometry by
trans
.impl<C: Copy, V: Copy> Copy for ExtrudedCurve<C, V>
impl<C, V> StructuralPartialEq for ExtrudedCurve<C, V>
Auto Trait Implementations§
impl<C, V> Freeze for ExtrudedCurve<C, V>
impl<C, V> RefUnwindSafe for ExtrudedCurve<C, V>where
C: RefUnwindSafe,
V: RefUnwindSafe,
impl<C, V> Send for ExtrudedCurve<C, V>
impl<C, V> Sync for ExtrudedCurve<C, V>
impl<C, V> Unpin for ExtrudedCurve<C, V>
impl<C, V> UnwindSafe for ExtrudedCurve<C, V>where
C: UnwindSafe,
V: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)