Skip to content
Snippets Groups Projects
Commit accbf1e3 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Formatting.

parent 5d05fe28
No related branches found
No related tags found
No related merge requests found
...@@ -157,10 +157,8 @@ public class DuvenhageAlgorithm implements IntersectionAlgorithm { ...@@ -157,10 +157,8 @@ public class DuvenhageAlgorithm implements IntersectionAlgorithm {
private GeodeticPoint recurseIntersection(final ExtendedEllipsoid ellipsoid, private GeodeticPoint recurseIntersection(final ExtendedEllipsoid ellipsoid,
final Vector3D position, final Vector3D los, final Vector3D position, final Vector3D los,
final MinMaxTreeTile tile, final MinMaxTreeTile tile,
final GeodeticPoint entry, final GeodeticPoint entry, final int entryLat, final int entryLon,
final int entryLat, final int entryLon, final GeodeticPoint exit, final int exitLat, final int exitLon)
final GeodeticPoint exit,
final int exitLat, final int exitLon)
throws RuggedException, OrekitException { throws RuggedException, OrekitException {
if (entryLat == exitLat && entryLon == exitLon) { if (entryLat == exitLat && entryLon == exitLon) {
...@@ -168,7 +166,8 @@ public class DuvenhageAlgorithm implements IntersectionAlgorithm { ...@@ -168,7 +166,8 @@ public class DuvenhageAlgorithm implements IntersectionAlgorithm {
GeodeticPoint intersection = tile.pixelIntersection(entry, ellipsoid.convertLos(entry, los), GeodeticPoint intersection = tile.pixelIntersection(entry, ellipsoid.convertLos(entry, los),
exitLat, exitLon); exitLat, exitLon);
if (intersection != null) { if (intersection != null) {
// improve the point, by projecting it back on the 3D line, fixing the small body curvature at pixel level // improve the point, by projecting it back on the 3D line,
// fixing the small body curvature remaining at pixel level
final Vector3D delta = ellipsoid.transform(intersection).subtract(position); final Vector3D delta = ellipsoid.transform(intersection).subtract(position);
final double s = Vector3D.dotProduct(delta, los) / los.getNormSq(); final double s = Vector3D.dotProduct(delta, los) / los.getNormSq();
final GeodeticPoint projected = ellipsoid.transform(new Vector3D(1, position, s, los), final GeodeticPoint projected = ellipsoid.transform(new Vector3D(1, position, s, los),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment