Trait truck_rendimpl::modeling::Curve [−]
Parametric curves
Associated Types
Loading content...Required methods
pub fn subs(&self, t: f64) -> Self::Point
Substitutes the parameter t
.
pub fn der(&self, t: f64) -> Self::Vector
Returns the derivation.
pub fn parameter_range(&self) -> (f64, f64)
The range of the parameter of the curve.
pub fn inverse(&self) -> Self
Returns the inverse of the curve.
Provided methods
pub fn front(&self) -> Self::Point
The front end point of the curve.
pub fn back(&self) -> Self::Point
The back end point of the curve.
Implementations on Foreign Types
impl Curve for ()
Implementation for the test of topological methods.
type Point = ()
type Vector = ()
pub fn subs(&self, f64) -> <() as Curve>::Point
pub fn der(&self, f64) -> <() as Curve>::Vector
pub fn parameter_range(&self) -> (f64, f64)
pub fn inverse(&self)
impl Curve for (usize, usize)
Implementation for the test of topological methods.
type Point = usize
type Vector = usize
pub fn subs(&self, t: f64) -> <(usize, usize) as Curve>::Point
pub fn der(&self, f64) -> <(usize, usize) as Curve>::Vector
pub fn parameter_range(&self) -> (f64, f64)
pub fn inverse(&self) -> (usize, usize)
impl<V> Curve for NURBSCurve<V> where
V: Homogeneous<f64>,
V: Homogeneous<f64>,
type Point = <V as Homogeneous<f64>>::Point
type Vector = <<V as Homogeneous<f64>>::Point as EuclideanSpace>::Diff
pub fn subs(&self, t: f64) -> <NURBSCurve<V> as Curve>::Point
pub fn der(&self, t: f64) -> <NURBSCurve<V> as Curve>::Vector
pub fn parameter_range(&self) -> (f64, f64)
pub fn inverse(&self) -> NURBSCurve<V>
impl<V> Curve for BSplineCurve<V> where
V: TangentSpace<f64>,
<V as TangentSpace<f64>>::Space: EuclideanSpace,
<<V as TangentSpace<f64>>::Space as EuclideanSpace>::Scalar == f64,
<<V as TangentSpace<f64>>::Space as EuclideanSpace>::Diff == V,
V: TangentSpace<f64>,
<V as TangentSpace<f64>>::Space: EuclideanSpace,
<<V as TangentSpace<f64>>::Space as EuclideanSpace>::Scalar == f64,
<<V as TangentSpace<f64>>::Space as EuclideanSpace>::Diff == V,