[−][src]Trait tdpsola::AlternatingWindow
Describes two alternating windows.
Required methods
fn step(&mut self)
Proceed one step.
fn window_a(&self) -> f32
Get the value of window a at the current step. By convention, this is something between 0.0 and 1.0.
fn window_b(&self) -> f32
Get the value of window b at the current step. By convention, this is something between 0.0 and 1.0.
fn a_is_ending(&self) -> bool
Indicates in which phase the windows are.
If a_is_ending()
is true, this means that
window a is past its peak and is decreasing and that window b is increasing.
If a_is_ending()
returns true, this means that
window_a is increasing and that window b is past its peak and is decreasing.