Skip to main content

Module coordinate_conversion

Module coordinate_conversion 

Source
Expand description

Coordinate and basis conversion of whole fields, and rigid transforms of fields.

  • HarmonicField::to_basis / TimeField::to_basis re-express vector components in another polarization basis at every sample (positions are unchanged; they live on the domain).
  • Domain::positions_in lists the sample positions in any coordinate system.
  • HarmonicField::transformed applies a RigidTransform x ↦ R x + t to the field: the new value at a sample q is R · F(T⁻¹ q) (just F(T⁻¹ q) for scalars), obtained by interpolation. On the far-field sphere, positions are directions: a rotation maps directions, and a translation by t multiplies the pattern by e^{jk r̂·t} (the same expression in both time conventions, with the convention’s imaginary unit).

See the book entry Fields on grids.