Trait plasma::PhaseAmpAccess

source ·
pub trait PhaseAmpAccess {
    // Required methods
    fn phase(&self) -> f32;
    fn amplitude(&self) -> f32;
    fn set_phase(&mut self, phase: f32);
    fn set_amplitude(&mut self, amplitude: f32);

    // Provided method
    fn export(&self, out: &mut Vec<f32>) { ... }
}
Expand description

A trait for querying and updating phase’n’amplitude

Required Methods§

source

fn phase(&self) -> f32

source

fn amplitude(&self) -> f32

source

fn set_phase(&mut self, phase: f32)

source

fn set_amplitude(&mut self, amplitude: f32)

Provided Methods§

source

fn export(&self, out: &mut Vec<f32>)

Implementations on Foreign Types§

source§

impl PhaseAmpAccess for [f32]

source§

fn phase(&self) -> f32

source§

fn set_phase(&mut self, phase: f32)

source§

fn amplitude(&self) -> f32

source§

fn set_amplitude(&mut self, amplitude: f32)

Implementors§