Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rugged
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Orekit
Rugged
Commits
accbf1e3
Commit
accbf1e3
authored
11 years ago
by
Luc Maisonobe
Browse files
Options
Downloads
Patches
Plain Diff
Formatting.
parent
5d05fe28
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rugged-core/src/main/java/org/orekit/rugged/core/duvenhage/DuvenhageAlgorithm.java
+4
-5
4 additions, 5 deletions
.../org/orekit/rugged/core/duvenhage/DuvenhageAlgorithm.java
with
4 additions
and
5 deletions
rugged-core/src/main/java/org/orekit/rugged/core/duvenhage/DuvenhageAlgorithm.java
+
4
−
5
View file @
accbf1e3
...
...
@@ -157,10 +157,8 @@ public class DuvenhageAlgorithm implements IntersectionAlgorithm {
private
GeodeticPoint
recurseIntersection
(
final
ExtendedEllipsoid
ellipsoid
,
final
Vector3D
position
,
final
Vector3D
los
,
final
MinMaxTreeTile
tile
,
final
GeodeticPoint
entry
,
final
int
entryLat
,
final
int
entryLon
,
final
GeodeticPoint
exit
,
final
int
exitLat
,
final
int
exitLon
)
final
GeodeticPoint
entry
,
final
int
entryLat
,
final
int
entryLon
,
final
GeodeticPoint
exit
,
final
int
exitLat
,
final
int
exitLon
)
throws
RuggedException
,
OrekitException
{
if
(
entryLat
==
exitLat
&&
entryLon
==
exitLon
)
{
...
...
@@ -168,7 +166,8 @@ public class DuvenhageAlgorithm implements IntersectionAlgorithm {
GeodeticPoint
intersection
=
tile
.
pixelIntersection
(
entry
,
ellipsoid
.
convertLos
(
entry
,
los
),
exitLat
,
exitLon
);
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
double
s
=
Vector3D
.
dotProduct
(
delta
,
los
)
/
los
.
getNormSq
();
final
GeodeticPoint
projected
=
ellipsoid
.
transform
(
new
Vector3D
(
1
,
position
,
s
,
los
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment