pub struct Harmonic {
pub amplitude: Scalar,
pub angular_frequency: Scalar,
pub phase: Scalar,
}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: ScalarPeak deviation contributed by this term.
angular_frequency: ScalarRadians of phase per unit arc length.
phase: ScalarPhase 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