cheatah
Struct

space::irbem::FieldVector

cheatah-space v0.1.0-alpha — Biome Standard 0.6.5-alpha

A magnetic field vector in nanotesla, in frame F.

Superposition is the operation that matters: a total field is an internal model plus one or more external contributions, and they must all be in the same frame. Making + frame-preserving means that sum cannot be written wrongly.

Template parameters
F

the frame the components are expressed in; always Cartesian in practice, since the field models are defined on Cartesian frames.

Functions

fn double magnitude() const #

Field magnitude — the B of Blocal, Bmin, Bmirr.

Returns

|v| in nanotesla.

Complexity

O(1).

Allocation

none.

Note

Not constexpr, for the same reason as Position::radius.

Constants & variables

var static Frame frame #

The frame these components are expressed in.

var fixarray::vec3d v #

The components, in nanotesla. Zero by default — see Position::v.