pub struct WavePulse {
pub node: NodeId,
pub amplitude: FiniteF32,
pub phase: FiniteF32,
pub frequency: PosF32,
pub wavelength: PosF32,
pub hops: u8,
pub prev_node: NodeId,
}Expand description
A wave pulse propagating through the graph. Replaces: resonance.py WavePulse
Fields§
§node: NodeId§amplitude: FiniteF32Amplitude (can be negative for destructive interference).
phase: FiniteF32Phase in [0, 2pi). Advances by 2pi*frequency/wavelength per hop.
frequency: PosF32Frequency — MUST be positive (FM-RES-002).
wavelength: PosF32Wavelength — MUST be positive (FM-RES-001).
hops: u8Hops from origin.
prev_node: NodeIdPrevious node (for reflection detection).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WavePulse
impl RefUnwindSafe for WavePulse
impl Send for WavePulse
impl Sync for WavePulse
impl Unpin for WavePulse
impl UnsafeUnpin for WavePulse
impl UnwindSafe for WavePulse
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