Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rugged-MOD
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
youngcle
Rugged-MOD
Commits
4a8d6b5d
Commit
4a8d6b5d
authored
10 years ago
by
Luc Maisonobe
Browse files
Options
Downloads
Patches
Plain Diff
Removed obsolete data fields.
parent
4b2f162a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/java/org/orekit/rugged/api/LineSensor.java
+0
-50
0 additions, 50 deletions
core/src/main/java/org/orekit/rugged/api/LineSensor.java
with
0 additions
and
50 deletions
core/src/main/java/org/orekit/rugged/api/LineSensor.java
+
0
−
50
View file @
4a8d6b5d
...
@@ -45,12 +45,6 @@ public class LineSensor {
...
@@ -45,12 +45,6 @@ public class LineSensor {
/** Pixels lines-of-sight. */
/** Pixels lines-of-sight. */
private
final
Vector3D
[]
x
;
private
final
Vector3D
[]
x
;
/** Pixels transversal direction (i.e. towards left pixel). */
private
final
Vector3D
[]
y
;
/** Pixels widths. */
private
final
double
[]
width
;
/** Mean plane normal. */
/** Mean plane normal. */
private
final
Vector3D
normal
;
private
final
Vector3D
normal
;
...
@@ -105,24 +99,6 @@ public class LineSensor {
...
@@ -105,24 +99,6 @@ public class LineSensor {
normal
=
singularVector
.
negate
();
normal
=
singularVector
.
negate
();
}
}
// compute transversal direction
y
=
new
Vector3D
[
x
.
length
];
for
(
int
i
=
0
;
i
<
x
.
length
;
++
i
)
{
y
[
i
]
=
Vector3D
.
crossProduct
(
normal
,
x
[
i
]).
normalize
();
}
// compute pixel widths
width
=
new
double
[
x
.
length
];
for
(
int
i
=
0
;
i
<
x
.
length
;
++
i
)
{
if
(
i
<
1
)
{
width
[
i
]
=
getAzimuth
(
los
.
get
(
i
+
1
),
i
);
}
else
if
(
i
>
x
.
length
-
2
)
{
width
[
i
]
=
-
getAzimuth
(
los
.
get
(
i
-
1
),
i
);
}
else
{
width
[
i
]
=
0.5
*
(
getAzimuth
(
los
.
get
(
i
+
1
),
i
)
-
getAzimuth
(
los
.
get
(
i
-
1
),
i
));
}
}
}
}
/** Get the name of the sensor.
/** Get the name of the sensor.
...
@@ -190,30 +166,4 @@ public class LineSensor {
...
@@ -190,30 +166,4 @@ public class LineSensor {
return
position
;
return
position
;
}
}
/** Get the relative azimuth of a direction with respect to a pixel.
* <p>
* The relative azimuth is computed along the sensor line. As it is
* relative to current pixel, it is 0 when the direction is aligned
* with pixel i, and the sign is consistent with {@link #getMeanPlaneNormal()
* mean plane normal} orientation.
* </p>
* @param direction direction to check
* @param i pixel index (will be enforced between 0 and {@link #getNbPixels()})
* @return relative azimuth of direction
*/
public
double
getAzimuth
(
final
Vector3D
direction
,
final
int
i
)
{
final
int
fixedI
=
FastMath
.
max
(
0
,
FastMath
.
min
(
x
.
length
-
1
,
i
));
return
FastMath
.
atan2
(
Vector3D
.
dotProduct
(
direction
,
y
[
fixedI
]),
Vector3D
.
dotProduct
(
direction
,
x
[
fixedI
]));
}
/** Get the the angular width a pixel.
* @param i pixel index (will be enforced between 0 and {@link #getNbPixels()})
* @return relative azimuth of direction
*/
public
double
getWidth
(
final
int
i
)
{
final
int
fixedI
=
FastMath
.
max
(
0
,
FastMath
.
min
(
x
.
length
-
1
,
i
));
return
width
[
fixedI
];
}
}
}
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