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.RealFieldElement;
20
21
22
23
24 class PlanetaryTerm extends SeriesTerm {
25
26
27 private final int cMe;
28
29
30 private final int cVe;
31
32
33 private final int cE;
34
35
36 private final int cMa;
37
38
39 private final int cJu;
40
41
42 private final int cSa;
43
44
45 private final int cUr;
46
47
48 private final int cNe;
49
50
51 private final int cPa;
52
53
54
55
56
57
58
59
60
61
62
63
64 PlanetaryTerm(final int cMe, final int cVe, final int cE, final int cMa, final int cJu,
65 final int cSa, final int cUr, final int cNe, final int cPa) {
66 this.cMe = cMe;
67 this.cVe = cVe;
68 this.cE = cE;
69 this.cMa = cMa;
70 this.cJu = cJu;
71 this.cSa = cSa;
72 this.cUr = cUr;
73 this.cNe = cNe;
74 this.cPa = cPa;
75 }
76
77
78 protected double argument(final BodiesElements elements) {
79 return cMe * elements.getLMe() + cVe * elements.getLVe() + cE * elements.getLE() +
80 cMa * elements.getLMa() + cJu * elements.getLJu() +
81 cSa * elements.getLSa() + cUr * elements.getLUr() +
82 cNe * elements.getLNe() + cPa * elements.getPa();
83 }
84
85
86 protected double argumentDerivative(final BodiesElements elements) {
87 return cMe * elements.getLMeDot() + cVe * elements.getLVeDot() + cE * elements.getLEDot() +
88 cMa * elements.getLMaDot() + cJu * elements.getLJuDot() +
89 cSa * elements.getLSaDot() + cUr * elements.getLUrDot() +
90 cNe * elements.getLNeDot() + cPa * elements.getPaDot();
91 }
92
93
94 protected <T extends RealFieldElement<T>> T argument(final FieldBodiesElements<T> elements) {
95 return elements.getLMe().multiply(cMe).
96 add(elements.getLVe().multiply(cVe)).
97 add(elements.getLE().multiply(cE)).
98 add(elements.getLMa().multiply(cMa)).
99 add(elements.getLJu().multiply(cJu)).
100 add(elements.getLSa().multiply(cSa)).
101 add(elements.getLUr().multiply(cUr)).
102 add(elements.getLNe().multiply(cNe)).
103 add(elements.getPa().multiply(cPa));
104 }
105
106
107 protected <T extends RealFieldElement<T>> T argumentDerivative(final FieldBodiesElements<T> elements) {
108 return elements.getLMeDot().multiply(cMe).
109 add(elements.getLVeDot().multiply(cVe)).
110 add(elements.getLEDot().multiply(cE)).
111 add(elements.getLMaDot().multiply(cMa)).
112 add(elements.getLJuDot().multiply(cJu)).
113 add(elements.getLSaDot().multiply(cSa)).
114 add(elements.getLUrDot().multiply(cUr)).
115 add(elements.getLNeDot().multiply(cNe)).
116 add(elements.getPaDot().multiply(cPa));
117 }
118
119 }