Struct batbox_lapp::CardinalSpline
source · pub struct CardinalSpline<T> {
pub points: Vec<vec2<T>>,
pub tension: T,
}
Expand description
Represents a cardinal spline.
Fields§
§points: Vec<vec2<T>>
The key points
tension: T
Tension parameter
Implementations§
Trait Implementations§
source§impl<F: Float> CubicHermiteCurve<F> for CardinalSpline<F>
impl<F: Float> CubicHermiteCurve<F> for CardinalSpline<F>
Auto Trait Implementations§
impl<T> RefUnwindSafe for CardinalSpline<T>where
T: RefUnwindSafe,
impl<T> Send for CardinalSpline<T>where
T: Send,
impl<T> Sync for CardinalSpline<T>where
T: Sync,
impl<T> Unpin for CardinalSpline<T>where
T: Unpin,
impl<T> UnwindSafe for CardinalSpline<T>where
T: 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