public class GeographicZoneDetector extends AbstractDetector<GeographicZoneDetector>
This detector identifies when a spacecraft crosses boundaries of general shapes defined on the surface of the globe. Typical shapes of interest can be countries, land masses or physical areas like the south atlantic anomaly. Shapes can be arbitrarily complicated: convex or non-convex, in one piece or several non-connected islands, they can include poles, they can have holes like the Caspian Sea (this would be a hole only if one is interested in land masses, of course). Complex shapes involve of course more computing time than simple shapes.
FootprintOverlapDetectorDEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD| Modifier | Constructor and Description |
|---|---|
protected |
GeographicZoneDetector(AdaptableInterval maxCheck,
double threshold,
int maxIter,
EventHandler handler,
BodyShape body,
org.hipparchus.geometry.spherical.twod.SphericalPolygonsSet zone,
org.hipparchus.geometry.enclosing.EnclosingBall<org.hipparchus.geometry.spherical.twod.Sphere2D,org.hipparchus.geometry.spherical.twod.S2Point> cap,
double margin)
Protected constructor with full parameters.
|
|
GeographicZoneDetector(BodyShape body,
org.hipparchus.geometry.spherical.twod.SphericalPolygonsSet zone,
double margin)
Build a new detector.
|
|
GeographicZoneDetector(double maxCheck,
double threshold,
BodyShape body,
org.hipparchus.geometry.spherical.twod.SphericalPolygonsSet zone,
double margin)
Build a detector.
|
| Modifier and Type | Method and Description |
|---|---|
protected GeographicZoneDetector |
create(AdaptableInterval newMaxCheck,
double newThreshold,
int newMaxIter,
EventHandler newHandler)
Build a new instance.
|
double |
g(SpacecraftState s)
Compute the value of the detection function.
|
BodyShape |
getBody()
Get the body on which the geographic zone is defined.
|
double |
getMargin()
Get the angular margin to apply (radians).
|
org.hipparchus.geometry.spherical.twod.SphericalPolygonsSet |
getZone()
Get the geographic zone.
|
GeographicZoneDetector |
withMargin(double newMargin)
Setup the detector margin.
|
getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThresholdpublic GeographicZoneDetector(BodyShape body, org.hipparchus.geometry.spherical.twod.SphericalPolygonsSet zone, double margin)
The new instance uses default values for maximal checking interval
(AbstractDetector.DEFAULT_MAXCHECK) and convergence threshold (AbstractDetector.DEFAULT_THRESHOLD).
body - body on which the geographic zone is definedzone - geographic zone to considermargin - angular margin to apply to the zonepublic GeographicZoneDetector(double maxCheck,
double threshold,
BodyShape body,
org.hipparchus.geometry.spherical.twod.SphericalPolygonsSet zone,
double margin)
maxCheck - maximal checking interval (s)threshold - convergence threshold (s)body - body on which the geographic zone is definedzone - geographic zone to considermargin - angular margin to apply to the zoneprotected GeographicZoneDetector(AdaptableInterval maxCheck, double threshold, int maxIter, EventHandler handler, BodyShape body, org.hipparchus.geometry.spherical.twod.SphericalPolygonsSet zone, org.hipparchus.geometry.enclosing.EnclosingBall<org.hipparchus.geometry.spherical.twod.Sphere2D,org.hipparchus.geometry.spherical.twod.S2Point> cap, double margin)
This constructor is not public as users are expected to use the builder
API with the various withXxx() methods to set up the instance
in a readable manner without using a huge amount of parameters.
maxCheck - maximum checking intervalthreshold - convergence threshold (s)maxIter - maximum number of iterations in the event time searchhandler - event handler to call at event occurrencesbody - body on which the geographic zone is definedzone - geographic zone to considercap - spherical cap surrounding the zonemargin - angular margin to apply to the zoneprotected GeographicZoneDetector create(AdaptableInterval newMaxCheck, double newThreshold, int newMaxIter, EventHandler newHandler)
create in class AbstractDetector<GeographicZoneDetector>newMaxCheck - maximum checking interval (s)newThreshold - convergence threshold (s)newMaxIter - maximum number of iterations in the event time searchnewHandler - event handler to call at event occurrencespublic GeographicZoneDetector withMargin(double newMargin)
newMargin - angular margin to apply to the zonepublic BodyShape getBody()
public org.hipparchus.geometry.spherical.twod.SphericalPolygonsSet getZone()
public double getMargin()
public double g(SpacecraftState s)
The value is the signed distance to boundary, minus the margin. It is positive if the spacecraft is outside of the zone and negative if it is inside.
g in interface EventDetectorg in class AbstractDetector<GeographicZoneDetector>s - the current state information: date, kinematics, attitudeCopyright © 2002-2023 CS GROUP. All rights reserved.