pub struct Harmonic {
pub amplitude: f64,
pub angular_frequency: f64,
pub phase: f64,
}Expand description
One sinusoidal term of a curvature law:
amplitude * sin(angular_frequency * s + phase).
A term is deliberately not a law: it carries no mean. The constant part of a composite law lives in its polynomial, so a given function has one representation instead of many that differ only in where the mean was put.
Fields§
§amplitude: f64Peak deviation contributed by this term.
angular_frequency: f64Radians of phase per unit arc length.
phase: f64Phase offset at s = 0, in radians.
Trait Implementations§
impl Copy for Harmonic
impl StructuralPartialEq for Harmonic
Auto Trait Implementations§
impl Freeze for Harmonic
impl RefUnwindSafe for Harmonic
impl Send for Harmonic
impl Sync for Harmonic
impl Unpin for Harmonic
impl UnwindSafe for Harmonic
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