pub struct PlanarArrayParameterValues {
pub translation_m: [f64; 3],
pub rotation_rad: [f64; 3],
pub pitch_m: [f64; 2],
pub reference_index: [f64; 2],
pub position_offsets_m: Vec<[f64; 3]>,
pub relative_source_power: Vec<f64>,
pub frame_gains: Vec<f64>,
}Expand description
Absolute physical and multiplicative parameter values in canonical units.
Fields§
§translation_m: [f64; 3]Array-pose translation (tx, ty, tz) in metres.
rotation_rad: [f64; 3]Active-extrinsic fixed-axis (rx, ry, rz) rotation in radians.
pitch_m: [f64; 2]Lattice (pitch_x, pitch_y) in metres.
reference_index: [f64; 2]Fractional (reference_column, reference_row) coordinate.
position_offsets_m: Vec<[f64; 3]>Full row-major source-offset array in local XYZ metres.
relative_source_power: Vec<f64>Stable dimensionless relative source powers in source order.
frame_gains: Vec<f64>Dimensionless frame gains in acquisition order.
Implementations§
Source§impl PlanarArrayParameterValues
impl PlanarArrayParameterValues
Sourcepub fn from_illumination(illumination: &Illumination) -> Result<Self>
pub fn from_illumination(illumination: &Illumination) -> Result<Self>
Extracts explicit absolute values, expanding implicit unit powers and zero offsets.
Sourcepub fn to_illumination(&self, template: &Illumination) -> Result<Illumination>
pub fn to_illumination(&self, template: &Illumination) -> Result<Illumination>
Applies these values to the topology and sparse weights of template.
Trait Implementations§
Source§impl Clone for PlanarArrayParameterValues
impl Clone for PlanarArrayParameterValues
Source§fn clone(&self) -> PlanarArrayParameterValues
fn clone(&self) -> PlanarArrayParameterValues
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlanarArrayParameterValues
impl Debug for PlanarArrayParameterValues
Source§impl<'de> Deserialize<'de> for PlanarArrayParameterValues
impl<'de> Deserialize<'de> for PlanarArrayParameterValues
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlanarArrayParameterValues
impl PartialEq for PlanarArrayParameterValues
Source§fn eq(&self, other: &PlanarArrayParameterValues) -> bool
fn eq(&self, other: &PlanarArrayParameterValues) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlanarArrayParameterValues
Auto Trait Implementations§
impl Freeze for PlanarArrayParameterValues
impl RefUnwindSafe for PlanarArrayParameterValues
impl Send for PlanarArrayParameterValues
impl Sync for PlanarArrayParameterValues
impl Unpin for PlanarArrayParameterValues
impl UnsafeUnpin for PlanarArrayParameterValues
impl UnwindSafe for PlanarArrayParameterValues
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more