Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Orekit
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
Gaëtan Pierre
Orekit
Commits
fb4c279b
Commit
fb4c279b
authored
5 years ago
by
Bryan Cazabonne
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of
https://gitlab.orekit.org/orekit/orekit.git
into develop
parents
13cda804
c279118a
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
src/main/java/org/orekit/geometry/fov/EllipticalFieldOfView.java
+18
-10
18 additions, 10 deletions
...n/java/org/orekit/geometry/fov/EllipticalFieldOfView.java
with
18 additions
and
10 deletions
src/main/java/org/orekit/geometry/fov/EllipticalFieldOfView.java
+
18
−
10
View file @
fb4c279b
...
...
@@ -67,8 +67,8 @@ import org.orekit.propagation.events.VisibilityTrigger;
* We define an ellipse on the sphere as the locus of points \(P\) such that the sum of
* their angular distance to two foci \(F_+\) and \(F_-\) is constant, all points being on
* the sphere. The relationship between the foci and the two half aperture angles \(\lambda\)
* and \(\mu\)
are
:
* \[F_\pm\left(\begin{gather*}
* and \(\mu\)
with
:
* \[
\lambda \ge \mu \Rightarrow
F_\pm\left(\begin{gather*}
* \pm\sin\delta\\
* 0\\
* \cos\delta
...
...
@@ -77,6 +77,16 @@ import org.orekit.propagation.events.VisibilityTrigger;
* \cos\delta = \frac{\cos\lambda}{\cos\mu}\]
* </p>
* <p>
* and
* \[\mu \ge \lambda \Rightarrow F_\pm\left(\begin{gather*}
* 0\\
* \pm\sin\delta\\
* \cos\delta
* \end{gather*}\right)
* \quad\text{with}\quad
* \cos\delta = \frac{\cos\mu}{\cos\lambda}\]
* </p>
* <p>
* It can be shown that the previous definition is equivalent to define first a regular
* planar ellipse drawn on a plane \(z = z_0\) (\(z_0\) being an arbitrary strictly positive
* number, \(z_0=1\) being the simplest choice) with semi major axis \(a=z_0\tan\lambda\)
...
...
@@ -126,22 +136,19 @@ public class EllipticalFieldOfView extends SmoothFieldOfView {
/** Unit vector along major axis. */
private
final
Vector3D
u
;
/** Unit vector along minor axis. */
private
final
Vector3D
v
;
/** First focus. */
private
final
Vector3D
focus1
;
/** Second focus. */
private
final
Vector3D
focus2
;
/** Cross product of foci
i
. */
/** Cross product of foci. */
private
final
Vector3D
crossF1F2
;
/** Dot product of foci
i
. */
/** Dot product of foci. */
private
final
double
dotF1F2
;
/** Half angle between foci
i
. */
/** Half angle between foci. */
private
final
double
gamma
;
/** Scaling factor for normalizing ellipse points. */
...
...
@@ -181,6 +188,7 @@ public class EllipticalFieldOfView extends SmoothFieldOfView {
super
(
center
,
primaryMeridian
,
margin
);
final
Vector3D
v
;
final
double
b
;
if
(
halfApertureAlongX
>=
halfApertureAlongY
)
{
u
=
getX
();
...
...
@@ -359,7 +367,7 @@ public class EllipticalFieldOfView extends SmoothFieldOfView {
return
new
Vector3D
(
dEll
.
getX
(),
getX
(),
dEll
.
getY
(),
getY
(),
dEll
.
getZ
(),
getZ
());
}
/** Get a direction from distances to foci
i
.
/** Get a direction from distances to foci.
* <p>
* if {@code d1} + {@code d2} = 2 max({@link #getHalfApertureAlongX()}, {@link #getHalfApertureAlongY()}),
* then the point is on the ellipse boundary
...
...
@@ -378,7 +386,7 @@ public class EllipticalFieldOfView extends SmoothFieldOfView {
return
new
Vector3D
(
a1
,
focus1
,
a2
,
focus2
,
FastMath
.
copySign
(
ac
,
sign
),
crossF1F2
);
}
/** Get a direction from distances to foci
i
.
/** Get a direction from distances to foci.
* <p>
* if {@code d1} + {@code d2} = 2 max({@link #getHalfApertureAlongX()}, {@link #getHalfApertureAlongY()}),
* then the point is on the ellipse boundary
...
...
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