OrbPro2 a Cesium distribution

EventDetector

Methods

static Cesium.EventDetector.altitudeCrossingFunction(entity, altitudeMeters)function

Create an altitude crossing event function. Returns positive when the entity is above the given altitude.
Name Type Description
entity Entity Entity with a position property.
altitudeMeters number Altitude threshold in meters.
Returns:
(JulianDate) → number. Positive = above threshold.

static Cesium.EventDetector.ascendingNodeFunction(entity)function

Create an ascending node crossing event function. Detects when the satellite crosses the equator going northward. Returns positive when latitude is positive (northern hemisphere).
Name Type Description
entity Entity Entity with a position property.
Returns:
(JulianDate) → number.

static Cesium.EventDetector.eclipseFunction(entity)function

Create an eclipse event function for a satellite entity. Returns a function that computes shadow state at any time: > 0 means the satellite is in eclipse (umbra or penumbra). Uses conical shadow model with Earth as the occulting body and Sun position from Simon1994 analytical ephemeris.
Name Type Description
entity Entity Entity with a position property.
Returns:
(JulianDate) → number. Positive = in eclipse.

static Cesium.EventDetector.latitudeCrossingFunction(entity, latitudeRadians)function

Create a latitude crossing event function. Returns positive when the entity's latitude is above the given threshold.
Name Type Description
entity Entity Entity with a position property.
latitudeRadians number Latitude threshold in radians.
Returns:
(JulianDate) → number. Positive = above threshold.

static Cesium.EventDetector.scan(eventFn, start, stop, stepSeconds, options)TimeIntervalCollection

Scan a time window for sign-change transitions of an event function. Returns intervals where eventFn returns a value > 0 (the "active" state). The scan steps through time at `stepSeconds` intervals, then uses bisection to refine transition boundaries to `tolerance` precision.
Name Type Description
eventFn function (JulianDate) → number. Positive = event active.
start JulianDate Start of scan window.
stop JulianDate End of scan window.
stepSeconds number Coarse scan step size in seconds.
options Object optional Options.
Name Type Default Description
tolerance number 0.1 optional Bisection tolerance in seconds.
Returns:
Intervals where eventFn > 0.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.