IntersectionAlgorithm
public class ConstantElevationAlgorithm extends Object implements IntersectionAlgorithm
This dummy implementation simply uses the ellipsoid itself.
Constructor | Description |
---|---|
ConstantElevationAlgorithm(double constantElevation) |
Simple constructor.
|
Modifier and Type | Method | Description |
---|---|---|
double |
getElevation(double latitude,
double longitude) |
Get elevation at a given ground point.
|
NormalizedGeodeticPoint |
intersection(ExtendedEllipsoid ellipsoid,
org.hipparchus.geometry.euclidean.threed.Vector3D position,
org.hipparchus.geometry.euclidean.threed.Vector3D los) |
Compute intersection of line with Digital Elevation Model.
|
NormalizedGeodeticPoint |
refineIntersection(ExtendedEllipsoid ellipsoid,
org.hipparchus.geometry.euclidean.threed.Vector3D position,
org.hipparchus.geometry.euclidean.threed.Vector3D los,
NormalizedGeodeticPoint closeGuess) |
Refine intersection of line with Digital Elevation Model.
|
public ConstantElevationAlgorithm(double constantElevation)
constantElevation
- constant elevation over ellipsoidpublic NormalizedGeodeticPoint intersection(ExtendedEllipsoid ellipsoid, org.hipparchus.geometry.euclidean.threed.Vector3D position, org.hipparchus.geometry.euclidean.threed.Vector3D los)
intersection
in interface IntersectionAlgorithm
ellipsoid
- reference ellipsoidposition
- pixel position in ellipsoid framelos
- pixel line-of-sight in ellipsoid framepublic NormalizedGeodeticPoint refineIntersection(ExtendedEllipsoid ellipsoid, org.hipparchus.geometry.euclidean.threed.Vector3D position, org.hipparchus.geometry.euclidean.threed.Vector3D los, NormalizedGeodeticPoint closeGuess)
This method is used to refine an intersection when a close guess is
already known. The intersection is typically looked for by a direct
cell intersection
in the tile which already
contains the close guess, or any similar very fast algorithm.
refineIntersection
in interface IntersectionAlgorithm
ellipsoid
- reference ellipsoidposition
- pixel position in ellipsoid framelos
- pixel line-of-sight in ellipsoid framecloseGuess
- guess close to the real intersectionpublic double getElevation(double latitude, double longitude)
As this algorithm uses a constant elevation, this method always returns the same value.
getElevation
in interface IntersectionAlgorithm
latitude
- ground point latitudelongitude
- ground point longitudeCopyright © 2014-2019 CS Systèmes d'information. All rights reserved.