cheatah
Struct

space::irbem::OpdPositionFold

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

The batch's position caveat, accumulated one point at a time — T89PositionFold's method against this model's envelope.

The envelope is r <= 60 R_E and nothing else, so the largest and smallest squared radii decide the whole batch with no per-point sqrt; the finiteness flag is kept apart because a NaN radius compares false against both extremes.

Unit testIrbemOpd.BatchReportsTheSameEnvelopeTheScalarLaneDoes

Functions

fn void add(const Position< Frame::GSM > &p) #

Fold one position in.

Parameters
p

the position, GSM, in Earth radii.

Complexity

O(1).

Allocation

none.

Unit testIrbemOpd.BatchReportsTheSameEnvelopeTheScalarLaneDoes
fn Status verdict() const #

What the batch's positions say about the model's envelope.

Returns

Status::DomainError when any point is not finite or is inside the Earth, Status::OutOfValidityRange when any point is beyond 60 R_E, otherwise Status::Ok.

Complexity

O(1).

Allocation

none.

Unit testIrbemOpd.BatchReportsTheSameEnvelopeTheScalarLaneDoes

Constants & variables

var double r2_lo #

The smallest r^2 seen, R_E^2; +inf until the first point.

var double r2_hi #

The largest r^2 seen, R_E^2; zero until the first point.

var double x_lo #

The smallest GSM x seen, R_E — carried so the envelope check is the same call the scalar lane makes, though this model publishes no x limit.

var bool finite #

False once any point has had a non-finite coordinate.