pub struct Spline {
pub control_points: Vec<SplinePoint>,
pub color_dct: [[f32; 32]; 3],
pub sigma_dct: [f32; 32],
}Expand description
A spline with control points, color DCT coefficients, and sigma DCT.
Control points define the curve path. The 32-element DCT arrays define how color intensity and Gaussian width vary along the curve.
Fields§
§control_points: Vec<SplinePoint>Control points of the spline (at least 1).
color_dct: [[f32; 32]; 3]Color DCT coefficients: [channel][coeff] for X, Y, B channels.
sigma_dct: [f32; 32]Sigma (Gaussian width) DCT coefficients.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Spline
impl RefUnwindSafe for Spline
impl Send for Spline
impl Sync for Spline
impl Unpin for Spline
impl UnsafeUnpin for Spline
impl UnwindSafe for Spline
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more