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>

source

pub const fn by_extrusion(curve: C, vector: V) -> Self

Creates a linear extruded curve by extrusion.

source

pub const fn entity_curve(&self) -> &C

Returns the curve before extruded.

source

pub fn into_entity_curve(self) -> C

Into the curve before revoluted.

source

pub const fn extruding_vector(&self) -> V

Returns the vector of extruded curve.

Trait Implementations§

source§

impl<C, V> BoundedSurface for ExtrudedCurve<C, V>

source§

fn range_tuple(&self) -> ((f64, f64), (f64, f64))

Return the ends of parameter_range by tuple.
source§

impl<C: Clone, V: Clone> Clone for ExtrudedCurve<C, V>

source§

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)

Performs copy-assignment from source. Read more
source§

impl<C: Debug, V: Debug> Debug for ExtrudedCurve<C, V>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

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>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<C: Invertible> Invertible for ExtrudedCurve<C, Vector3>

source§

fn invert(&mut self)

Inverts self
source§

fn inverse(&self) -> Self

Returns the inverse.
source§

impl<C: ParameterDivision1D, V> ParameterDivision2D for ExtrudedCurve<C, V>

source§

fn parameter_division( &self, (urange, vrange): ((f64, f64), (f64, f64)), tol: f64, ) -> (Vec<f64>, Vec<f64>)

Creates the surface division Read more
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>,

source§

type Point = <C as ParametricCurve>::Point

The surface is in the space of Self::Point.
source§

type Vector = <C as ParametricCurve>::Vector

The derivation vector of the curve.
source§

fn subs(&self, u: f64, v: f64) -> C::Point

Substitutes the parameter (u, v).
source§

fn uder(&self, u: f64, _: f64) -> C::Vector

Returns the derivation by u.
source§

fn vder(&self, _: f64, _: f64) -> C::Vector

Returns the derivation by v.
source§

fn uuder(&self, u: f64, _: f64) -> C::Vector

Returns the 2nd-order derivation by u.
source§

fn uvder(&self, _: f64, _: f64) -> C::Vector

Returns the 2nd-order derivation by both u and v.
source§

fn vvder(&self, _: f64, _: f64) -> C::Vector

Returns the 2nd-order derivation by v.
source§

fn parameter_range(&self) -> (ParameterRange, ParameterRange)

The range of the parameter of the surface.
source§

fn u_period(&self) -> Option<f64>

None in default; Some(period) if periodic w.r.t. parameter u.
source§

fn try_range_tuple(&self) -> (Option<(f64, f64)>, Option<(f64, f64)>)

Return the ends of parameter_range by tuple. If the range is unbounded, return `None``.
source§

fn v_period(&self) -> Option<f64>

None in default; Some(period) if periodic w.r.t. parameter v.
source§

impl<C: ParametricCurve3D> ParametricSurface3D for ExtrudedCurve<C, Vector3>

source§

fn normal(&self, u: f64, _: f64) -> C::Vector

Returns the normal vector at (u, v).
source§

impl<C: PartialEq, V: PartialEq> PartialEq for ExtrudedCurve<C, V>

source§

fn eq(&self, other: &ExtrudedCurve<C, V>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<C: ParametricCurve3D + BoundedCurve> SearchNearestParameter<D2> for ExtrudedCurve<C, Vector3>

source§

type Point = Point3<f64>

point
source§

fn search_nearest_parameter<H: Into<SPHint2D>>( &self, point: Point3, hint: H, trials: usize, ) -> Option<(f64, f64)>

Search nearest parameter t such that self.subs(t) is nearest point.
Returns None if could not find such parameter.
source§

impl<C: ParametricCurve2D + BoundedCurve> SearchParameter<D2> for ExtrudedCurve<C, Vector2>

source§

type Point = Point2<f64>

point
source§

fn search_parameter<H: Into<SPHint2D>>( &self, point: Point2, hint: H, trials: usize, ) -> Option<(f64, f64)>

Search parameter t such that self.subs(t) is near point.
Returns None if could not find such parameter.
source§

impl<C: ParametricCurve3D + BoundedCurve> SearchParameter<D2> for ExtrudedCurve<C, Vector3>

source§

type Point = Point3<f64>

point
source§

fn search_parameter<H: Into<SPHint2D>>( &self, point: Point3, hint: H, trials: usize, ) -> Option<(f64, f64)>

Search parameter t such that self.subs(t) is near point.
Returns None if could not find such parameter.
source§

impl<C, V> Serialize for ExtrudedCurve<C, V>
where C: Serialize, V: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<C: Transformed<Matrix4>> Transformed<Matrix4<f64>> for ExtrudedCurve<C, Vector3>

source§

fn transform_by(&mut self, trans: Matrix4)

transform by trans.
source§

fn transformed(&self, trans: Matrix4) -> Self

transformed geometry by trans.
source§

impl<C: Copy, V: Copy> Copy for ExtrudedCurve<C, V>

source§

impl<C, V> StructuralPartialEq for ExtrudedCurve<C, V>

Auto Trait Implementations§

§

impl<C, V> Freeze for ExtrudedCurve<C, V>
where C: Freeze, V: Freeze,

§

impl<C, V> RefUnwindSafe for ExtrudedCurve<C, V>

§

impl<C, V> Send for ExtrudedCurve<C, V>
where C: Send, V: Send,

§

impl<C, V> Sync for ExtrudedCurve<C, V>
where C: Sync, V: Sync,

§

impl<C, V> Unpin for ExtrudedCurve<C, V>
where C: Unpin, V: Unpin,

§

impl<C, V> UnwindSafe for ExtrudedCurve<C, V>
where C: UnwindSafe, V: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<S> ParametricSurface2D for S
where S: ParametricSurface<Point = Point2<f64>, Vector = Vector2<f64>>,