Trait truck_rendimpl::modeling::Curve[]

pub trait Curve: Clone {
    type Point;
    type Vector;
    pub fn subs(&self, t: f64) -> Self::Point;
pub fn der(&self, t: f64) -> Self::Vector;
pub fn parameter_range(&self) -> (f64, f64);
pub fn inverse(&self) -> Self; pub fn front(&self) -> Self::Point { ... }
pub fn back(&self) -> Self::Point { ... } }

Parametric curves

Associated Types

type Point

The curve is in the space of Self::Point.

type Vector

The derivation vector of the curve.

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.

Loading content...

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.

Loading content...

Implementations on Foreign Types

impl Curve for (usize, usize)

Implementation for the test of topological methods.

type Point = usize

type Vector = usize

impl Curve for ()

Implementation for the test of topological methods.

type Point = ()

type Vector = ()

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, 

type Point = <V as TangentSpace<f64>>::Space

type Vector = V

impl<V> Curve for NURBSCurve<V> where
    V: Homogeneous<f64>, 

type Point = <V as Homogeneous<f64>>::Point

type Vector = <<V as Homogeneous<f64>>::Point as EuclideanSpace>::Diff

Loading content...

Implementors

Loading content...