pub enum CoordinateTransform {
Clarke,
ClarkeInv,
Park,
ParkInv,
ClarkePark,
ClarkeParkInv,
}Expand description
One of the six Clarke/Park coordinate transforms, grouped for dispatch by
dae-runtime’s block graph the same way crate::MathFn1/crate::MathFn2 group the
single-output waveform-arithmetic functions.
Variants§
Implementations§
Source§impl CoordinateTransform
impl CoordinateTransform
Sourcepub fn input_count(self) -> usize
pub fn input_count(self) -> usize
Number of inputs this transform expects, in the order Self::call requires them.
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The kind= keyword that selects this transform at the CLI level — used for diagnostics
that need to name this specific transform rather than the CoordinateTransform family
as a whole, e.g. dae-runtime’s own block_kind_name.
Sourcepub fn output_names(self) -> [&'static str; 3]
pub fn output_names(self) -> [&'static str; 3]
Conventional names for this transform’s outputs, in the order Self::call returns
them — a caller wiring up a dae-runtime block graph names each output block after one
of these (e.g. "pll_alpha", "pll_beta", "pll_zero").
Sourcepub fn call(self, inputs: &[f64]) -> [f64; 3]
pub fn call(self, inputs: &[f64]) -> [f64; 3]
Evaluates this transform. inputs.len() must equal Self::input_count (the caller’s
responsibility — a device-file-level parser is the natural place to check once at load
time, matching crate::waveform_arithmetic::table’s convention).
Trait Implementations§
Source§impl Clone for CoordinateTransform
impl Clone for CoordinateTransform
Source§fn clone(&self) -> CoordinateTransform
fn clone(&self) -> CoordinateTransform
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more