pub struct Sinusoid2 {
pub mean: f64,
pub cosine: f64,
pub sine: f64,
}Expand description
The graph v = mean + cosine cos(t) + sine sin(t), parameterised by t.
The point at parameter t is (t, v(t)): the parameter IS the first
coordinate. On a cylinder that coordinate is the angle, so a pcurve use
states the angle span it covers directly as its interval, and a span
longer than a full turn is representable (it simply wraps the surface).
The curve is defined for every finite t and repeats with period 2 pi
in v; its conventional domain is one full turn.
Dirty imported data stays representable, as everywhere else in this crate: validation rejects non-finite coefficients, construction does not.
Fields§
§mean: f64Mean height: the constant term.
cosine: f64Amplitude of the cos(t) term.
sine: f64Amplitude of the sin(t) term.
Implementations§
Trait Implementations§
impl Copy for Sinusoid2
impl StructuralPartialEq for Sinusoid2
Auto Trait Implementations§
impl Freeze for Sinusoid2
impl RefUnwindSafe for Sinusoid2
impl Send for Sinusoid2
impl Sync for Sinusoid2
impl Unpin for Sinusoid2
impl UnwindSafe for Sinusoid2
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