1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.orekit.data;
18
19 import org.hipparchus.CalculusFieldElement;
20
21
22
23
24 class LuniSolarTerm extends SeriesTerm {
25
26
27 private final int cL;
28
29
30 private final int cLPrime;
31
32
33 private final int cF;
34
35
36 private final int cD;
37
38
39 private final int cOmega;
40
41
42
43
44
45
46
47
48 LuniSolarTerm(final int cL, final int cLPrime, final int cF, final int cD, final int cOmega) {
49 this.cL = cL;
50 this.cLPrime = cLPrime;
51 this.cF = cF;
52 this.cD = cD;
53 this.cOmega = cOmega;
54 }
55
56
57 protected double argument(final BodiesElements elements) {
58 return cL * elements.getL() + cLPrime * elements.getLPrime() + cF * elements.getF() +
59 cD * elements.getD() + cOmega * elements.getOmega();
60 }
61
62
63 protected double argumentDerivative(final BodiesElements elements) {
64 return cL * elements.getLDot() + cLPrime * elements.getLPrimeDot() + cF * elements.getFDot() +
65 cD * elements.getDDot() + cOmega * elements.getOmegaDot();
66 }
67
68
69 protected <T extends CalculusFieldElement<T>> T argument(final FieldBodiesElements<T> elements) {
70 return elements.getL().multiply(cL).
71 add(elements.getLPrime().multiply(cLPrime)).
72 add(elements.getF().multiply(cF)).
73 add(elements.getD().multiply(cD)).
74 add(elements.getOmega().multiply(cOmega));
75 }
76
77
78 protected <T extends CalculusFieldElement<T>> T argumentDerivative(final FieldBodiesElements<T> elements) {
79 return elements.getLDot().multiply(cL).
80 add(elements.getLPrimeDot().multiply(cLPrime)).
81 add(elements.getFDot().multiply(cF)).
82 add(elements.getDDot().multiply(cD)).
83 add(elements.getOmegaDot().multiply(cOmega));
84 }
85
86 }