pub struct Sinusoid2 {
pub mean: Scalar,
pub cosine: Scalar,
pub sine: Scalar,
}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: ScalarMean height: the constant term.
cosine: ScalarAmplitude of the cos(t) term.
sine: ScalarAmplitude 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