View Javadoc
1   /*
2    * Copyright (C) 2019 Alberto Irurueta Carro (alberto@irurueta.com)
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *         http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package com.irurueta.navigation.inertial.estimators;
17  
18  import com.irurueta.algebra.AlgebraException;
19  import com.irurueta.algebra.Matrix;
20  import com.irurueta.algebra.Utils;
21  import com.irurueta.geometry.Point3D;
22  import com.irurueta.navigation.frames.CoordinateTransformation;
23  import com.irurueta.navigation.frames.ECEFFrame;
24  import com.irurueta.navigation.frames.ECEFPosition;
25  import com.irurueta.navigation.frames.ECEFVelocity;
26  import com.irurueta.navigation.geodesic.Constants;
27  import com.irurueta.navigation.inertial.BodyKinematics;
28  import com.irurueta.units.Speed;
29  import com.irurueta.units.SpeedConverter;
30  import com.irurueta.units.SpeedUnit;
31  import com.irurueta.units.Time;
32  import com.irurueta.units.TimeConverter;
33  import com.irurueta.units.TimeUnit;
34  
35  /**
36   * Estimates body kinematics (specific force applied to a body and its angular rates) with respect and resolved
37   * along ECEF-frame axes.
38   * This implementation is based on the equations defined in "Principles of GNSS, Inertial, and Multisensor
39   * Integrated Navigation Systems, Second Edition" and on the companion software available at:
40   * <a href="https://github.com/ymjdz/MATLAB-Codes/blob/master/Kinematics_ECEF.m">
41   *     https://github.com/ymjdz/MATLAB-Codes/blob/master/Kinematics_ECEF.m
42   * </a>
43   */
44  public class ECEFKinematicsEstimator {
45  
46      /**
47       * Earth rotation rate expressed in radians per second (rad/s).
48       */
49      public static final double EARTH_ROTATION_RATE = Constants.EARTH_ROTATION_RATE;
50  
51      /**
52       * Scaling threshold.
53       */
54      private static final double SCALING_THRESHOLD = 2e-5;
55  
56      /**
57       * Alpha threshold.
58       */
59      private static final double ALPHA_THRESHOLD = 1e-8;
60  
61      /**
62       * Number of rows.
63       */
64      private static final int ROWS = 3;
65  
66      /**
67       * Estimates body kinematics (specific force applied to a body and its angular rates).
68       *
69       * @param timeInterval time interval between epochs expressed in seconds (s).
70       * @param c            body-to-ECEF frame coordinate transformation matrix.
71       * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
72       * @param vx           velocity of body frame x coordinate with respect ECEF frame,
73       *                     resolved along ECEF-frame axes and expressed in meters per
74       *                     second (m/s).
75       * @param vy           velocity of body frame y coordinate with respect ECEF frame,
76       *                     resolved along ECEF-frame axes and expressed in meters per
77       *                     second (m/s).
78       * @param vz           velocity of body frame z coordinate with respect ECEF frame,
79       *                     resolved along ECEF-frame axes and expressed in meters per
80       *                     second (m/s).
81       * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
82       *                     frame, resolved along ECEF-frame axes and expressed in meters
83       *                     per second (m/s).
84       * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
85       *                     frame, resolved along ECEF-frame axes and expressed in meters
86       *                     per second (m/s).
87       * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
88       *                     frame, resolved along ECEF-frame axes and expressed in meters
89       *                     per second (m/s).
90       * @param x            cartesian x coordinate of body position expressed in meters (m)
91       *                     with respect ECEF frame, resolved along ECEF-frame axes.
92       *                     This is the position where gravity is evaluated; to be consistent with
93       *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
94       *                     position at the start of the time interval.
95       * @param y            cartesian y coordinate of body position expressed in meters (m)
96       *                     with respect ECEF frame, resolved along ECEF-frame axes.
97       *                     This is the position where gravity is evaluated; to be consistent with
98       *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
99       *                     position at the start of the time interval.
100      * @param z            cartesian z coordinate of body position expressed in meters (m)
101      *                     with respect ECEF frame, resolved along ECEF-frame axes.
102      *                     This is the position where gravity is evaluated; to be consistent with
103      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
104      *                     position at the start of the time interval.
105      * @param result       instance where body kinematics estimation will be stored.
106      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
107      *                                  are not ECEF frame valid.
108      */
109     public void estimate(
110             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
111             final double vx, final double vy, final double vz,
112             final double oldVx, final double oldVy, final double oldVz,
113             final double x, final double y, final double z, final BodyKinematics result) {
114         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z, result);
115     }
116 
117     /**
118      * Estimates body kinematics (specific force applied to a body and its angular rates).
119      *
120      * @param timeInterval time interval between epochs.
121      * @param c            boy-to-ECEF frame coordinate transformation matrix.
122      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
123      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
124      *                     resolved along ECEF-frame axes and expressed in meters per
125      *                     second (m/s).
126      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
127      *                     resolved along ECEF-frame axes and expressed in meters per
128      *                     second (m/s).
129      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
130      *                     resolved along ECEF-frame axes and expressed in meters per
131      *                     second (m/s).
132      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
133      *                     frame, resolved along ECEF-frame axes and expressed in meters
134      *                     per second (m/s).
135      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
136      *                     frame, resolved along ECEF-frame axes and expressed in meters
137      *                     per second (m/s).
138      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
139      *                     frame, resolved along ECEF-frame axes and expressed in meters
140      *                     per second (m/s).
141      * @param x            cartesian x coordinate of body position expressed in meters (m)
142      *                     with respect ECEF frame, resolved along ECEF-frame axes.
143      *                     This is the position where gravity is evaluated; to be consistent with
144      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
145      *                     position at the start of the time interval.
146      * @param y            cartesian y coordinate of body position expressed in meters (m)
147      *                     with respect ECEF frame, resolved along ECEF-frame axes.
148      *                     This is the position where gravity is evaluated; to be consistent with
149      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
150      *                     position at the start of the time interval.
151      * @param z            cartesian z coordinate of body position expressed in meters (m)
152      *                     with respect ECEF frame, resolved along ECEF-frame axes.
153      *                     This is the position where gravity is evaluated; to be consistent with
154      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
155      *                     position at the start of the time interval.
156      * @param result       instance where body kinematics estimation will be stored.
157      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
158      *                                  are not ECEF frame valid.
159      */
160     public void estimate(
161             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
162             final double vx, final double vy, final double vz,
163             final double oldVx, final double oldVy, final double oldVz,
164             final double x, final double y, final double z, final BodyKinematics result) {
165         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z, result);
166     }
167 
168     /**
169      * Estimates body kinematics (specific force applied to a body and its angular rates).
170      *
171      * @param timeInterval time interval between epochs expressed in seconds (s).
172      * @param c            boy-to-ECEF frame coordinate transformation matrix.
173      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
174      * @param velocity     velocity of body frame with respect ECEF frame.
175      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
176      * @param x            cartesian x coordinate of body position expressed in meters (m)
177      *                     with respect ECEF frame, resolved along ECEF-frame axes.
178      *                     This is the position where gravity is evaluated; to be consistent with
179      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
180      *                     position at the start of the time interval.
181      * @param y            cartesian y coordinate of body position expressed in meters (m)
182      *                     with respect ECEF frame, resolved along ECEF-frame axes.
183      *                     This is the position where gravity is evaluated; to be consistent with
184      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
185      *                     position at the start of the time interval.
186      * @param z            cartesian z coordinate of body position expressed in meters (m)
187      *                     with respect ECEF frame, resolved along ECEF-frame axes.
188      *                     This is the position where gravity is evaluated; to be consistent with
189      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
190      *                     position at the start of the time interval.
191      * @param result       instance where body kinematics estimation will be stored.
192      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
193      *                                  are not ECEF frame valid.
194      */
195     public void estimate(
196             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
197             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final double x, final double y, final double z,
198             final BodyKinematics result) {
199         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, x, y, z, result);
200     }
201 
202     /**
203      * Estimates body kinematics (specific force applied to a body and its angular rates).
204      *
205      * @param timeInterval time interval between epochs.
206      * @param c            boy-to-ECEF frame coordinate transformation matrix.
207      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
208      * @param velocity     velocity of body frame with respect ECEF frame.
209      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
210      * @param x            cartesian x coordinate of body position expressed in meters (m)
211      *                     with respect ECEF frame, resolved along ECEF-frame axes.
212      *                     This is the position where gravity is evaluated; to be consistent with
213      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
214      *                     position at the start of the time interval.
215      * @param y            cartesian y coordinate of body position expressed in meters (m)
216      *                     with respect ECEF frame, resolved along ECEF-frame axes.
217      *                     This is the position where gravity is evaluated; to be consistent with
218      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
219      *                     position at the start of the time interval.
220      * @param z            cartesian z coordinate of body position expressed in meters (m)
221      *                     with respect ECEF frame, resolved along ECEF-frame axes.
222      *                     This is the position where gravity is evaluated; to be consistent with
223      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
224      *                     position at the start of the time interval.
225      * @param result       instance where body kinematics estimation will be stored.
226      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
227      *                                  are not ECEF frame valid.
228      */
229     public void estimate(
230             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
231             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final double x, final double y, final double z,
232             final BodyKinematics result) {
233         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, x, y, z, result);
234     }
235 
236     /**
237      * Estimates body kinematics (specific force applied to a body and its angular rates)..
238      *
239      * @param timeInterval time interval between epochs expressed in seconds (s).
240      * @param c            body-to-ECEF-frame coordinate transformation.
241      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
242      * @param vx           x coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
243      *                     along ECEF-frame axes.
244      * @param vy           y coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
245      *                     along ECEF-frame axes.
246      * @param vz           z coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
247      *                     along ECEF-frame axes.
248      * @param oldVx        x coordinate of previous velocity of body frame expressed in meters per second (m/s) and
249      *                     resolved along ECEF-frame axes.
250      * @param oldVy        y coordinate of previous velocity of body frame expressed in meters per second (m/s) and
251      *                     resolved along ECEF-frame axes.
252      * @param oldVz        z coordinate of previous velocity of body frame expressed in meters per second (m/s) and
253      *                     resolved along ECEF-frame axes.
254      * @param position     cartesian body position resolved along ECEF-frame axes.
255      *                     This is the position where gravity is evaluated; to be consistent with
256      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
257      *                     position at the start of the time interval.
258      * @param result       instance where estimated body kinematics will be stored.
259      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
260      *                                  are not ECEF frame valid.
261      */
262     public void estimate(
263             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
264             final double vx, final double vy, final double vz,
265             final double oldVx, final double oldVy, final double oldVz, final ECEFPosition position,
266             final BodyKinematics result) {
267         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
268     }
269 
270     /**
271      * Estimates body kinematics (specific force applied to a body and its angular rates).
272      *
273      * @param timeInterval time interval between epochs.
274      * @param c            body-to-ECEF-frame coordinate transformation.
275      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
276      * @param vx           x coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
277      *                     along ECEF-frame axes.
278      * @param vy           y coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
279      *                     along ECEF-frame axes.
280      * @param vz           z coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
281      *                     along ECEF-frame axes.
282      * @param oldVx        x coordinate of previous velocity of body frame expressed in meters per second (m/s) and
283      *                     resolved along ECEF-frame axes.
284      * @param oldVy        y coordinate of previous velocity of body frame expressed in meters per second (m/s) and
285      *                     resolved along ECEF-frame axes.
286      * @param oldVz        z coordinate of previous velocity of body frame expressed in meters per second (m/s) and
287      *                     resolved along ECEF-frame axes.
288      * @param position     cartesian body position resolved along ECEF-frame axes.
289      *                     This is the position where gravity is evaluated; to be consistent with
290      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
291      *                     position at the start of the time interval.
292      * @param result       instance where estimated body kinematics will be stored.
293      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
294      *                                  are not ECEF frame valid.
295      */
296     public void estimate(
297             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
298             final double vx, final double vy, final double vz,
299             final double oldVx, final double oldVy, final double oldVz, final ECEFPosition position,
300             final BodyKinematics result) {
301         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
302     }
303 
304     /**
305      * Estimates body kinematics (specific force applied to a body and its angular rates).
306      *
307      * @param timeInterval time interval between epochs expressed in seconds (s).
308      * @param c            boy-to-ECEF frame coordinate transformation matrix.
309      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
310      * @param velocity     velocity of body frame with respect ECEF frame.
311      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
312      * @param position     cartesian body position resolved along ECEF-frame axes.
313      *                     This is the position where gravity is evaluated; to be consistent with
314      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
315      *                     position at the start of the time interval.
316      * @param result       instance where body kinematics estimation will be stored.
317      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
318      *                                  are not ECEF frame valid.
319      */
320     public void estimate(
321             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
322             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final ECEFPosition position,
323             final BodyKinematics result) {
324         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, position, result);
325     }
326 
327     /**
328      * Estimates body kinematics (specific force applied to a body and its angular rates).
329      *
330      * @param timeInterval time interval between epochs.
331      * @param c            boy-to-ECEF frame coordinate transformation matrix.
332      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
333      * @param velocity     velocity of body frame with respect ECEF frame.
334      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
335      * @param position     cartesian body position resolved along ECEF-frame axes.
336      *                     This is the position where gravity is evaluated; to be consistent with
337      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
338      *                     position at the start of the time interval.
339      * @param result       instance where body kinematics estimation will be stored.
340      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
341      *                                  are not ECEF frame valid.
342      */
343     public void estimate(
344             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
345             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final ECEFPosition position,
346             final BodyKinematics result) {
347         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, position, result);
348     }
349 
350     /**
351      * Estimates body kinematics (specific force applied to a body and its angular rates).
352      *
353      * @param timeInterval time interval between epochs expressed in seconds (s).
354      * @param frame        body ECEF frame containing current position, velocity and
355      *                     body-to-ECEF frame coordinate transformation.
356      *                     The position contained in this frame is the position where gravity is evaluated; to
357      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
358      *                     callers) this must be the position at the start of the time interval. When the body
359      *                     moves, use an overload receiving the previous frame or an explicit position instead.
360      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
361      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
362      *                     frame, resolved along ECEF-frame axes and expressed in meters
363      *                     per second (m/s).
364      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
365      *                     frame, resolved along ECEF-frame axes and expressed in meters
366      *                     per second (m/s).
367      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
368      *                     frame, resolved along ECEF-frame axes and expressed in meters
369      *                     per second (m/s).
370      * @param result       instance where body kinematics estimation will be stored.
371      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
372      *                                  are not ECEF frame valid.
373      */
374     public void estimate(
375             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
376             final double oldVx, final double oldVy, final double oldVz, final BodyKinematics result) {
377         estimateKinematics(timeInterval, frame, oldC, oldVx, oldVy, oldVz, result);
378     }
379 
380     /**
381      * Estimates body kinematics (specific force applied to a body and its angular rates).
382      *
383      * @param timeInterval time interval between epochs.
384      * @param frame        body ECEF frame containing current position, velocity and
385      *                     body-to-ECEF frame coordinate transformation.
386      *                     The position contained in this frame is the position where gravity is evaluated; to
387      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
388      *                     callers) this must be the position at the start of the time interval. When the body
389      *                     moves, use an overload receiving the previous frame or an explicit position instead.
390      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
391      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
392      *                     frame, resolved along ECEF-frame axes and expressed in meters
393      *                     per second (m/s).
394      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
395      *                     frame, resolved along ECEF-frame axes and expressed in meters
396      *                     per second (m/s).
397      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
398      *                     frame, resolved along ECEF-frame axes and expressed in meters
399      *                     per second (m/s).
400      * @param result       instance where body kinematics estimation will be stored.
401      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
402      *                                  are not ECEF frame valid.
403      */
404     public void estimate(
405             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
406             final double oldVx, final double oldVy, final double oldVz, final BodyKinematics result) {
407         estimateKinematics(timeInterval, frame, oldC, oldVx, oldVy, oldVz, result);
408     }
409 
410     /**
411      * Estimates body kinematics (specific force applied to a body and its angular rates).
412      *
413      * @param timeInterval time interval between epochs expressed in seconds (s).
414      * @param frame        body ECEF frame containing current position, velocity and
415      *                     body-to-ECEF frame coordinate transformation.
416      *                     The position contained in this frame is the position where gravity is evaluated; to
417      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
418      *                     callers) this must be the position at the start of the time interval. When the body
419      *                     moves, use an overload receiving the previous frame or an explicit position instead.
420      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
421      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
422      * @param result       instance where body kinematics estimation will be stored.
423      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
424      *                                  are not ECEF frame valid.
425      */
426     public void estimate(
427             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
428             final ECEFVelocity oldVelocity, final BodyKinematics result) {
429         estimateKinematics(timeInterval, frame, oldC, oldVelocity, result);
430     }
431 
432     /**
433      * Estimates body kinematics (specific force applied to a body and its angular rates).
434      *
435      * @param timeInterval time interval between epochs.
436      * @param frame        body ECEF frame containing current position, velocity and
437      *                     body-to-ECEF frame coordinate transformation.
438      *                     The position contained in this frame is the position where gravity is evaluated; to
439      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
440      *                     callers) this must be the position at the start of the time interval. When the body
441      *                     moves, use an overload receiving the previous frame or an explicit position instead.
442      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
443      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
444      * @param result       instance where body kinematics estimation will be stored.
445      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
446      *                                  are not ECEF frame valid.
447      */
448     public void estimate(
449             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
450             final ECEFVelocity oldVelocity, final BodyKinematics result) {
451         estimateKinematics(timeInterval, frame, oldC, oldVelocity, result);
452     }
453 
454     /**
455      * Estimates body kinematics (specific force applied to a body and its angular rates).
456      *
457      * @param timeInterval time interval between epochs expressed in seconds (s).
458      * @param frame        body ECEF frame containing current position, velocity and
459      *                     body-to-ECEF frame coordinate transformation.
460      *                     Notice that current position contained in this frame is ignored.
461      * @param oldFrame     body ECEF frame containing previous position, velocity and
462      *                     body-to-ECEF frame coordinate transformation. The position
463      *                     contained in this frame is the position where gravity is evaluated; to be consistent
464      *                     with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be
465      *                     the position at the start of the time interval.
466      * @param result       instance where body kinematics estimation will be stored.
467      * @throws IllegalArgumentException if provided time interval is negative.
468      */
469     public void estimate(
470             final double timeInterval, final ECEFFrame frame, final ECEFFrame oldFrame, final BodyKinematics result) {
471         estimateKinematics(timeInterval, frame, oldFrame, result);
472     }
473 
474     /**
475      * Estimates body kinematics (specific force applied to a body and its angular rates).
476      *
477      * @param timeInterval time interval between epochs.
478      * @param frame        body ECEF frame containing current position, velocity and
479      *                     body-to-ECEF frame coordinate transformation.
480      *                     Notice that current position contained in this frame is ignored.
481      * @param oldFrame     body ECEF frame containing previous position, velocity and
482      *                     body-to-ECEF frame coordinate transformation. The position
483      *                     contained in this frame is the position where gravity is evaluated; to be consistent
484      *                     with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be
485      *                     the position at the start of the time interval.
486      * @param result       instance where body kinematics estimation will be stored.
487      * @throws IllegalArgumentException if provided time interval is negative.
488      */
489     public void estimate(
490             final Time timeInterval, final ECEFFrame frame, final ECEFFrame oldFrame, final BodyKinematics result) {
491         estimateKinematics(timeInterval, frame, oldFrame, result);
492     }
493 
494     /**
495      * Estimates body kinematics (specific force applied to a body and its angular rates).
496      *
497      * @param timeInterval time interval between epochs expressed in seconds (s).
498      * @param c            body-to-ECEF frame coordinate transformation matrix.
499      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
500      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
501      *                     resolved along ECEF-frame axes.
502      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
503      *                     resolved along ECEF-frame axes.
504      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
505      *                     resolved along ECEF-frame axes.
506      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
507      *                     frame, resolved along ECEF-frame axes.
508      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
509      *                     frame, resolved along ECEF-frame axes.
510      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
511      *                     frame, resolved along ECEF-frame axes.
512      * @param x            cartesian x coordinate of body position expressed in meters (m)
513      *                     with respect ECEF frame, resolved along ECEF-frame axes.
514      *                     This is the position where gravity is evaluated; to be consistent with
515      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
516      *                     position at the start of the time interval.
517      * @param y            cartesian y coordinate of body position expressed in meters (m)
518      *                     with respect ECEF frame, resolved along ECEF-frame axes.
519      *                     This is the position where gravity is evaluated; to be consistent with
520      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
521      *                     position at the start of the time interval.
522      * @param z            cartesian z coordinate of body position expressed in meters (m)
523      *                     with respect ECEF frame, resolved along ECEF-frame axes.
524      *                     This is the position where gravity is evaluated; to be consistent with
525      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
526      *                     position at the start of the time interval.
527      * @param result       instance where body kinematics estimation will be stored.
528      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
529      *                                  are not ECEF frame valid.
530      */
531     public void estimate(
532             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
533             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
534             final double x, final double y, final double z, final BodyKinematics result) {
535         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z, result);
536     }
537 
538     /**
539      * Estimates body kinematics (specific force applied to a body and its angular rates).
540      *
541      * @param timeInterval time interval between epochs.
542      * @param c            body-to-ECEF frame coordinate transformation matrix.
543      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
544      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
545      *                     resolved along ECEF-frame axes.
546      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
547      *                     resolved along ECEF-frame axes.
548      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
549      *                     resolved along ECEF-frame axes.
550      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
551      *                     frame, resolved along ECEF-frame axes.
552      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
553      *                     frame, resolved along ECEF-frame axes.
554      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
555      *                     frame, resolved along ECEF-frame axes.
556      * @param x            cartesian x coordinate of body position expressed in meters (m)
557      *                     with respect ECEF frame, resolved along ECEF-frame axes.
558      *                     This is the position where gravity is evaluated; to be consistent with
559      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
560      *                     position at the start of the time interval.
561      * @param y            cartesian y coordinate of body position expressed in meters (m)
562      *                     with respect ECEF frame, resolved along ECEF-frame axes.
563      *                     This is the position where gravity is evaluated; to be consistent with
564      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
565      *                     position at the start of the time interval.
566      * @param z            cartesian z coordinate of body position expressed in meters (m)
567      *                     with respect ECEF frame, resolved along ECEF-frame axes.
568      *                     This is the position where gravity is evaluated; to be consistent with
569      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
570      *                     position at the start of the time interval.
571      * @param result       instance where body kinematics estimation will be stored.
572      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
573      *                                  are not ECEF frame valid.
574      */
575     public void estimate(
576             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
577             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
578             final double x, final double y, final double z, final BodyKinematics result) {
579         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z, result);
580     }
581 
582     /**
583      * Estimates body kinematics (specific force applied to a body and its angular rates).
584      *
585      * @param timeInterval time interval between epochs expressed in seconds (s).
586      * @param c            body-to-ECEF frame coordinate transformation matrix.
587      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
588      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
589      *                     resolved along ECEF-frame axes.
590      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
591      *                     resolved along ECEF-frame axes.
592      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
593      *                     resolved along ECEF-frame axes.
594      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
595      *                     frame, resolved along ECEF-frame axes.
596      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
597      *                     frame, resolved along ECEF-frame axes.
598      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
599      *                     frame, resolved along ECEF-frame axes.
600      * @param position     cartesian body position resolved along ECEF-frame axes.
601      *                     This is the position where gravity is evaluated; to be consistent with
602      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
603      *                     position at the start of the time interval.
604      * @param result       instance where body kinematics estimation will be stored.
605      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
606      *                                  are not ECEF frame valid.
607      */
608     public void estimate(
609             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
610             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
611             final ECEFPosition position, final BodyKinematics result) {
612         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
613     }
614 
615     /**
616      * Estimates body kinematics (specific force applied to a body and its angular rates).
617      *
618      * @param timeInterval time interval between epochs.
619      * @param c            body-to-ECEF frame coordinate transformation matrix.
620      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
621      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
622      *                     resolved along ECEF-frame axes.
623      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
624      *                     resolved along ECEF-frame axes.
625      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
626      *                     resolved along ECEF-frame axes.
627      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
628      *                     frame, resolved along ECEF-frame axes.
629      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
630      *                     frame, resolved along ECEF-frame axes.
631      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
632      *                     frame, resolved along ECEF-frame axes.
633      * @param position     cartesian body position resolved along ECEF-frame axes.
634      *                     This is the position where gravity is evaluated; to be consistent with
635      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
636      *                     position at the start of the time interval.
637      * @param result       instance where body kinematics estimation will be stored.
638      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
639      *                                  are not ECEF frame valid.
640      */
641     public void estimate(
642             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
643             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
644             final ECEFPosition position, final BodyKinematics result) {
645         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
646     }
647 
648     /**
649      * Estimates body kinematics (specific force applied to a body and its angular rates).
650      *
651      * @param timeInterval time interval between epochs expressed in seconds (s).
652      * @param frame        body ECEF frame containing current position, velocity and
653      *                     body-to-ECEF frame coordinate transformation.
654      *                     The position contained in this frame is the position where gravity is evaluated; to
655      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
656      *                     callers) this must be the position at the start of the time interval. When the body
657      *                     moves, use an overload receiving the previous frame or an explicit position instead.
658      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
659      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
660      *                     frame, resolved along ECEF-frame axes.
661      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
662      *                     frame, resolved along ECEF-frame axes.
663      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
664      *                     frame, resolved along ECEF-frame axes.
665      * @param result       instance where body kinematics estimation will be stored.
666      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
667      *                                  are not ECEF frame valid.
668      */
669     public void estimate(
670             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
671             final Speed oldVx, final Speed oldVy, final Speed oldVz, final BodyKinematics result) {
672         estimateKinematics(timeInterval, frame, oldC, oldVx, oldVy, oldVz, result);
673     }
674 
675     /**
676      * Estimates body kinematics (specific force applied to a body and its angular rates).
677      *
678      * @param timeInterval time interval between epochs.
679      * @param frame        body ECEF frame containing current position, velocity and
680      *                     body-to-ECEF frame coordinate transformation.
681      *                     The position contained in this frame is the position where gravity is evaluated; to
682      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
683      *                     callers) this must be the position at the start of the time interval. When the body
684      *                     moves, use an overload receiving the previous frame or an explicit position instead.
685      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
686      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
687      *                     frame, resolved along ECEF-frame axes.
688      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
689      *                     frame, resolved along ECEF-frame axes.
690      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
691      *                     frame, resolved along ECEF-frame axes.
692      * @param result       instance where body kinematics estimation will be stored.
693      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
694      *                                  are not ECEF frame valid.
695      */
696     public void estimate(
697             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
698             final Speed oldVx, final Speed oldVy, final Speed oldVz, final BodyKinematics result) {
699         estimateKinematics(timeInterval, frame, oldC, oldVx, oldVy, oldVz, result);
700     }
701 
702     /**
703      * Estimates body kinematics (specific force applied to a body and its angular rates).
704      *
705      * @param timeInterval time interval between epochs expressed in seconds (s).
706      * @param c            body-to-ECEF frame coordinate transformation matrix.
707      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
708      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
709      *                     resolved along ECEF-frame axes and expressed in meters per
710      *                     second (m/s).
711      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
712      *                     resolved along ECEF-frame axes and expressed in meters per
713      *                     second (m/s).
714      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
715      *                     resolved along ECEF-frame axes and expressed in meters per
716      *                     second (m/s).
717      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
718      *                     frame, resolved along ECEF-frame axes and expressed in meters
719      *                     per second (m/s).
720      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
721      *                     frame, resolved along ECEF-frame axes and expressed in meters
722      *                     per second (m/s).
723      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
724      *                     frame, resolved along ECEF-frame axes and expressed in meters
725      *                     per second (m/s).
726      * @param position     body position expressed in meters (m) with respect ECEF frame,
727      *                     resolved along ECEF-frame axes.
728      *                     This is the position where gravity is evaluated; to be consistent with
729      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
730      *                     position at the start of the time interval.
731      * @param result       instance where body kinematics estimation will be stored.
732      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
733      *                                  are not ECEF frame valid.
734      */
735     public void estimate(
736             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
737             final double vx, final double vy, final double vz,
738             final double oldVx, final double oldVy, final double oldVz, final Point3D position,
739             final BodyKinematics result) {
740         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
741     }
742 
743     /**
744      * Estimates body kinematics (specific force applied to a body and its angular rates).
745      *
746      * @param timeInterval time interval between epochs.
747      * @param c            body-to-ECEF frame coordinate transformation matrix.
748      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
749      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
750      *                     resolved along ECEF-frame axes and expressed in meters per
751      *                     second (m/s).
752      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
753      *                     resolved along ECEF-frame axes and expressed in meters per
754      *                     second (m/s).
755      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
756      *                     resolved along ECEF-frame axes and expressed in meters per
757      *                     second (m/s).
758      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
759      *                     frame, resolved along ECEF-frame axes and expressed in meters
760      *                     per second (m/s).
761      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
762      *                     frame, resolved along ECEF-frame axes and expressed in meters
763      *                     per second (m/s).
764      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
765      *                     frame, resolved along ECEF-frame axes and expressed in meters
766      *                     per second (m/s).
767      * @param position     body position expressed in meters (m) with respect ECEF frame,
768      *                     resolved along ECEF-frame axes.
769      *                     This is the position where gravity is evaluated; to be consistent with
770      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
771      *                     position at the start of the time interval.
772      * @param result       instance where body kinematics estimation will be stored.
773      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
774      *                                  are not ECEF frame valid.
775      */
776     public void estimate(
777             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
778             final double vx, final double vy, final double vz,
779             final double oldVx, final double oldVy, final double oldVz, final Point3D position,
780             final BodyKinematics result) {
781         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
782     }
783 
784     /**
785      * Estimates body kinematics (specific force applied to a body and its angular rates).
786      *
787      * @param timeInterval time interval between epochs expressed in seconds (s).
788      * @param c            body-to-ECEF frame coordinate transformation matrix.
789      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
790      * @param velocity     velocity of body frame with respect ECEF frame.
791      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
792      * @param position     body position expressed in meters (m) with respect ECEF frame,
793      *                     resolved along ECEF-frame axes.
794      *                     This is the position where gravity is evaluated; to be consistent with
795      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
796      *                     position at the start of the time interval.
797      * @param result       instance where body kinematics estimation will be stored.
798      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
799      *                                  are not ECEF frame valid.
800      */
801     public void estimate(
802             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
803             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final Point3D position,
804             final BodyKinematics result) {
805         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, position, result);
806     }
807 
808     /**
809      * Estimates body kinematics (specific force applied to a body and its angular rates).
810      *
811      * @param timeInterval time interval between epochs.
812      * @param c            body-to-ECEF frame coordinate transformation matrix.
813      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
814      * @param velocity     velocity of body frame with respect ECEF frame.
815      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
816      * @param position     body position expressed in meters (m) with respect ECEF frame,
817      *                     resolved along ECEF-frame axes.
818      *                     This is the position where gravity is evaluated; to be consistent with
819      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
820      *                     position at the start of the time interval.
821      * @param result       instance where body kinematics estimation will be stored.
822      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
823      *                                  are not ECEF frame valid.
824      */
825     public void estimate(
826             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
827             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final Point3D position,
828             final BodyKinematics result) {
829         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, position, result);
830     }
831 
832     /**
833      * Estimates body kinematics (specific force applied to a body and its angular rates).
834      *
835      * @param timeInterval time interval between epochs expressed in seconds (s).
836      * @param c            boy-to-ECEF frame coordinate transformation matrix.
837      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
838      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
839      *                     resolved along ECEF-frame axes.
840      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
841      *                     resolved along ECEF-frame axes.
842      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
843      *                     resolved along ECEF-frame axes.
844      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
845      *                     frame, resolved along ECEF-frame axes.
846      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
847      *                     frame, resolved along ECEF-frame axes.
848      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
849      *                     frame, resolved along ECEF-frame axes.
850      * @param position     body position expressed in meters (m) with respect ECEF frame,
851      *                     resolved along ECEF-frame axes.
852      *                     This is the position where gravity is evaluated; to be consistent with
853      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
854      *                     position at the start of the time interval.
855      * @param result       instance where body kinematics estimation will be stored.
856      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
857      *                                  are not ECEF frame valid.
858      */
859     public void estimate(
860             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
861             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
862             final Point3D position, final BodyKinematics result) {
863         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
864     }
865 
866     /**
867      * Estimates body kinematics (specific force applied to a body and its angular rates).
868      *
869      * @param timeInterval time interval between epochs.
870      * @param c            boy-to-ECEF frame coordinate transformation matrix.
871      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
872      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
873      *                     resolved along ECEF-frame axes.
874      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
875      *                     resolved along ECEF-frame axes.
876      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
877      *                     resolved along ECEF-frame axes.
878      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
879      *                     frame, resolved along ECEF-frame axes.
880      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
881      *                     frame, resolved along ECEF-frame axes.
882      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
883      *                     frame, resolved along ECEF-frame axes.
884      * @param position     body position expressed in meters (m) with respect ECEF frame,
885      *                     resolved along ECEF-frame axes.
886      *                     This is the position where gravity is evaluated; to be consistent with
887      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
888      *                     position at the start of the time interval.
889      * @param result       instance where body kinematics estimation will be stored.
890      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
891      *                                  are not ECEF frame valid.
892      */
893     public void estimate(
894             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
895             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
896             final Point3D position, final BodyKinematics result) {
897         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
898     }
899 
900     /**
901      * Estimates body kinematics (specific force applied to a body and its angular rates).
902      *
903      * @param timeInterval time interval between epochs expressed in seconds (s).
904      * @param c            body-to-ECEF frame coordinate transformation matrix.
905      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
906      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
907      *                     resolved along ECEF-frame axes and expressed in meters per
908      *                     second (m/s).
909      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
910      *                     resolved along ECEF-frame axes and expressed in meters per
911      *                     second (m/s).
912      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
913      *                     resolved along ECEF-frame axes and expressed in meters per
914      *                     second (m/s).
915      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
916      *                     frame, resolved along ECEF-frame axes and expressed in meters
917      *                     per second (m/s).
918      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
919      *                     frame, resolved along ECEF-frame axes and expressed in meters
920      *                     per second (m/s).
921      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
922      *                     frame, resolved along ECEF-frame axes and expressed in meters
923      *                     per second (m/s).
924      * @param x            cartesian x coordinate of body position expressed in meters (m)
925      *                     with respect ECEF frame, resolved along ECEF-frame axes.
926      *                     This is the position where gravity is evaluated; to be consistent with
927      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
928      *                     position at the start of the time interval.
929      * @param y            cartesian y coordinate of body position expressed in meters (m)
930      *                     with respect ECEF frame, resolved along ECEF-frame axes.
931      *                     This is the position where gravity is evaluated; to be consistent with
932      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
933      *                     position at the start of the time interval.
934      * @param z            cartesian z coordinate of body position expressed in meters (m)
935      *                     with respect ECEF frame, resolved along ECEF-frame axes.
936      *                     This is the position where gravity is evaluated; to be consistent with
937      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
938      *                     position at the start of the time interval.
939      * @return a new body kinematics instance.
940      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
941      *                                  are not ECEF frame valid.
942      */
943     public BodyKinematics estimateAndReturnNew(
944             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
945             final double vx, final double vy, final double vz,
946             final double oldVx, final double oldVy, final double oldVz,
947             final double x, final double y, final double z) {
948         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z);
949     }
950 
951     /**
952      * Estimates body kinematics (specific force applied to a body and its angular rates).
953      *
954      * @param timeInterval time interval between.
955      * @param c            body-to-ECEF frame coordinate transformation matrix.
956      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
957      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
958      *                     resolved along ECEF-frame axes and expressed in meters per
959      *                     second (m/s).
960      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
961      *                     resolved along ECEF-frame axes and expressed in meters per
962      *                     second (m/s).
963      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
964      *                     resolved along ECEF-frame axes and expressed in meters per
965      *                     second (m/s).
966      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
967      *                     frame, resolved along ECEF-frame axes and expressed in meters
968      *                     per second (m/s).
969      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
970      *                     frame, resolved along ECEF-frame axes and expressed in meters
971      *                     per second (m/s).
972      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
973      *                     frame, resolved along ECEF-frame axes and expressed in meters
974      *                     per second (m/s).
975      * @param x            cartesian x coordinate of body position expressed in meters (m)
976      *                     with respect ECEF frame, resolved along ECEF-frame axes.
977      *                     This is the position where gravity is evaluated; to be consistent with
978      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
979      *                     position at the start of the time interval.
980      * @param y            cartesian y coordinate of body position expressed in meters (m)
981      *                     with respect ECEF frame, resolved along ECEF-frame axes.
982      *                     This is the position where gravity is evaluated; to be consistent with
983      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
984      *                     position at the start of the time interval.
985      * @param z            cartesian z coordinate of body position expressed in meters (m)
986      *                     with respect ECEF frame, resolved along ECEF-frame axes.
987      *                     This is the position where gravity is evaluated; to be consistent with
988      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
989      *                     position at the start of the time interval.
990      * @return a new body kinematics instance.
991      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
992      *                                  are not ECEF frame valid.
993      */
994     public BodyKinematics estimateAndReturnNew(
995             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
996             final double vx, final double vy, final double vz,
997             final double oldVx, final double oldVy, final double oldVz,
998             final double x, final double y, final double z) {
999         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z);
1000     }
1001 
1002     /**
1003      * Estimates body kinematics (specific force applied to a body and its angular rates).
1004      *
1005      * @param timeInterval time interval between epochs expressed in seconds (s).
1006      * @param c            boy-to-ECEF frame coordinate transformation matrix.
1007      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1008      * @param velocity     velocity of body frame with respect ECEF frame.
1009      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
1010      * @param x            cartesian x coordinate of body position expressed in meters (m)
1011      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1012      *                     This is the position where gravity is evaluated; to be consistent with
1013      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1014      *                     position at the start of the time interval.
1015      * @param y            cartesian y coordinate of body position expressed in meters (m)
1016      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1017      *                     This is the position where gravity is evaluated; to be consistent with
1018      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1019      *                     position at the start of the time interval.
1020      * @param z            cartesian z coordinate of body position expressed in meters (m)
1021      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1022      *                     This is the position where gravity is evaluated; to be consistent with
1023      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1024      *                     position at the start of the time interval.
1025      * @return a new body kinematics instance.
1026      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1027      *                                  are not ECEF frame valid.
1028      */
1029     public BodyKinematics estimateAndReturnNew(
1030             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1031             final ECEFVelocity velocity, final ECEFVelocity oldVelocity,
1032             final double x, final double y, final double z) {
1033         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, velocity, oldVelocity, x, y, z);
1034     }
1035 
1036     /**
1037      * Estimates body kinematics (specific force applied to a body and its angular rates).
1038      *
1039      * @param timeInterval time interval between epochs.
1040      * @param c            boy-to-ECEF frame coordinate transformation matrix.
1041      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1042      * @param velocity     velocity of body frame with respect ECEF frame.
1043      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
1044      * @param x            cartesian x coordinate of body position expressed in meters (m)
1045      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1046      *                     This is the position where gravity is evaluated; to be consistent with
1047      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1048      *                     position at the start of the time interval.
1049      * @param y            cartesian y coordinate of body position expressed in meters (m)
1050      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1051      *                     This is the position where gravity is evaluated; to be consistent with
1052      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1053      *                     position at the start of the time interval.
1054      * @param z            cartesian z coordinate of body position expressed in meters (m)
1055      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1056      *                     This is the position where gravity is evaluated; to be consistent with
1057      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1058      *                     position at the start of the time interval.
1059      * @return a new body kinematics instance.
1060      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1061      *                                  are not ECEF frame valid.
1062      */
1063     public BodyKinematics estimateAndReturnNew(
1064             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1065             final ECEFVelocity velocity, final ECEFVelocity oldVelocity,
1066             final double x, final double y, final double z) {
1067         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, velocity, oldVelocity, x, y, z);
1068     }
1069 
1070     /**
1071      * Estimates body kinematics (specific force applied to a body and its angular rates)..
1072      *
1073      * @param timeInterval time interval between epochs expressed in seconds (s).
1074      * @param c            body-to-ECEF-frame coordinate transformation.
1075      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1076      * @param vx           x coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
1077      *                     along ECEF-frame axes.
1078      * @param vy           y coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
1079      *                     along ECEF-frame axes.
1080      * @param vz           z coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
1081      *                     along ECEF-frame axes.
1082      * @param oldVx        x coordinate of previous velocity of body frame expressed in meters per second (m/s) and
1083      *                     resolved along ECEF-frame axes.
1084      * @param oldVy        y coordinate of previous velocity of body frame expressed in meters per second (m/s) and
1085      *                     resolved along ECEF-frame axes.
1086      * @param oldVz        z coordinate of previous velocity of body frame expressed in meters per second (m/s) and
1087      *                     resolved along ECEF-frame axes.
1088      * @param position     cartesian body position resolved along ECEF-frame axes.
1089      *                     This is the position where gravity is evaluated; to be consistent with
1090      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1091      *                     position at the start of the time interval.
1092      * @return a new body kinematics instance.
1093      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1094      *                                  are not ECEF frame valid.
1095      */
1096     public BodyKinematics estimateAndReturnNew(
1097             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1098             final double vx, final double vy, final double vz,
1099             final double oldVx, final double oldVy, final double oldVz, final ECEFPosition position) {
1100         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position);
1101     }
1102 
1103     /**
1104      * Estimates body kinematics (specific force applied to a body and its angular rates)..
1105      *
1106      * @param timeInterval time interval between epochs.
1107      * @param c            body-to-ECEF-frame coordinate transformation.
1108      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1109      * @param vx           x coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
1110      *                     along ECEF-frame axes.
1111      * @param vy           y coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
1112      *                     along ECEF-frame axes.
1113      * @param vz           z coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
1114      *                     along ECEF-frame axes.
1115      * @param oldVx        x coordinate of previous velocity of body frame expressed in meters per second (m/s) and
1116      *                     resolved along ECEF-frame axes.
1117      * @param oldVy        y coordinate of previous velocity of body frame expressed in meters per second (m/s) and
1118      *                     resolved along ECEF-frame axes.
1119      * @param oldVz        z coordinate of previous velocity of body frame expressed in meters per second (m/s) and
1120      *                     resolved along ECEF-frame axes.
1121      * @param position     cartesian body position resolved along ECEF-frame axes.
1122      *                     This is the position where gravity is evaluated; to be consistent with
1123      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1124      *                     position at the start of the time interval.
1125      * @return a new body kinematics instance.
1126      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1127      *                                  are not ECEF frame valid.
1128      */
1129     public BodyKinematics estimateAndReturnNew(
1130             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1131             final double vx, final double vy, final double vz,
1132             final double oldVx, final double oldVy, final double oldVz, final ECEFPosition position) {
1133         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position);
1134     }
1135 
1136     /**
1137      * Estimates body kinematics (specific force applied to a body and its angular rates).
1138      *
1139      * @param timeInterval time interval between epochs expressed in seconds (s).
1140      * @param c            boy-to-ECEF frame coordinate transformation matrix.
1141      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1142      * @param velocity     velocity of body frame with respect ECEF frame.
1143      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
1144      * @param position     cartesian body position resolved along ECEF-frame axes.
1145      *                     This is the position where gravity is evaluated; to be consistent with
1146      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1147      *                     position at the start of the time interval.
1148      * @return a new body kinematics instance.
1149      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1150      *                                  are not ECEF frame valid.
1151      */
1152     public BodyKinematics estimateAndReturnNew(
1153             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1154             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final ECEFPosition position) {
1155         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, velocity, oldVelocity, position);
1156     }
1157 
1158     /**
1159      * Estimates body kinematics (specific force applied to a body and its angular rates).
1160      *
1161      * @param timeInterval time interval between epochs.
1162      * @param c            boy-to-ECEF frame coordinate transformation matrix.
1163      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1164      * @param velocity     velocity of body frame with respect ECEF frame.
1165      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
1166      * @param position     cartesian body position resolved along ECEF-frame axes.
1167      *                     This is the position where gravity is evaluated; to be consistent with
1168      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1169      *                     position at the start of the time interval.
1170      * @return a new body kinematics instance.
1171      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1172      *                                  are not ECEF frame valid.
1173      */
1174     public BodyKinematics estimateAndReturnNew(
1175             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1176             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final ECEFPosition position) {
1177         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, velocity, oldVelocity, position);
1178     }
1179 
1180     /**
1181      * Estimates body kinematics (specific force applied to a body and its angular rates).
1182      *
1183      * @param timeInterval time interval between epochs expressed in seconds (s).
1184      * @param frame        body ECEF frame containing current position, velocity and
1185      *                     body-to-ECEF frame coordinate transformation.
1186      *                     The position contained in this frame is the position where gravity is evaluated; to
1187      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
1188      *                     callers) this must be the position at the start of the time interval. When the body
1189      *                     moves, use an overload receiving the previous frame or an explicit position instead.
1190      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1191      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1192      *                     frame, resolved along ECEF-frame axes and expressed in meters
1193      *                     per second (m/s).
1194      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1195      *                     frame, resolved along ECEF-frame axes and expressed in meters
1196      *                     per second (m/s).
1197      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1198      *                     frame, resolved along ECEF-frame axes and expressed in meters
1199      *                     per second (m/s).
1200      * @return a new body kinematics instance.
1201      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1202      *                                  are not ECEF frame valid.
1203      */
1204     public BodyKinematics estimateAndReturnNew(
1205             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
1206             final double oldVx, final double oldVy, final double oldVz) {
1207         return estimateKinematicsAndReturnNew(timeInterval, frame, oldC, oldVx, oldVy, oldVz);
1208     }
1209 
1210     /**
1211      * Estimates body kinematics (specific force applied to a body and its angular rates).
1212      *
1213      * @param timeInterval time interval between epochs.
1214      * @param frame        body ECEF frame containing current position, velocity and
1215      *                     body-to-ECEF frame coordinate transformation.
1216      *                     The position contained in this frame is the position where gravity is evaluated; to
1217      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
1218      *                     callers) this must be the position at the start of the time interval. When the body
1219      *                     moves, use an overload receiving the previous frame or an explicit position instead.
1220      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1221      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1222      *                     frame, resolved along ECEF-frame axes and expressed in meters
1223      *                     per second (m/s).
1224      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1225      *                     frame, resolved along ECEF-frame axes and expressed in meters
1226      *                     per second (m/s).
1227      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1228      *                     frame, resolved along ECEF-frame axes and expressed in meters
1229      *                     per second (m/s).
1230      * @return a new body kinematics instance.
1231      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1232      *                                  are not ECEF frame valid.
1233      */
1234     public BodyKinematics estimateAndReturnNew(
1235             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
1236             final double oldVx, final double oldVy, final double oldVz) {
1237         return estimateKinematicsAndReturnNew(timeInterval, frame, oldC, oldVx, oldVy, oldVz);
1238     }
1239 
1240     /**
1241      * Estimates body kinematics (specific force applied to a body and its angular rates).
1242      *
1243      * @param timeInterval time interval between epochs expressed in seconds (s).
1244      * @param frame        body ECEF frame containing current position, velocity and
1245      *                     body-to-ECEF frame coordinate transformation.
1246      *                     The position contained in this frame is the position where gravity is evaluated; to
1247      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
1248      *                     callers) this must be the position at the start of the time interval. When the body
1249      *                     moves, use an overload receiving the previous frame or an explicit position instead.
1250      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1251      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
1252      * @return a new body kinematics instance.
1253      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1254      *                                  are not ECEF frame valid.
1255      */
1256     public BodyKinematics estimateAndReturnNew(
1257             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
1258             final ECEFVelocity oldVelocity) {
1259         return estimateKinematicsAndReturnNew(timeInterval, frame, oldC, oldVelocity);
1260     }
1261 
1262     /**
1263      * Estimates body kinematics (specific force applied to a body and its angular rates).
1264      *
1265      * @param timeInterval time interval between epochs.
1266      * @param frame        body ECEF frame containing current position, velocity and
1267      *                     body-to-ECEF frame coordinate transformation.
1268      *                     The position contained in this frame is the position where gravity is evaluated; to
1269      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
1270      *                     callers) this must be the position at the start of the time interval. When the body
1271      *                     moves, use an overload receiving the previous frame or an explicit position instead.
1272      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1273      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
1274      * @return a new body kinematics instance.
1275      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1276      *                                  are not ECEF frame valid.
1277      */
1278     public BodyKinematics estimateAndReturnNew(
1279             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
1280             final ECEFVelocity oldVelocity) {
1281         return estimateKinematicsAndReturnNew(timeInterval, frame, oldC, oldVelocity);
1282     }
1283 
1284     /**
1285      * Estimates body kinematics (specific force applied to a body and its angular rates).
1286      *
1287      * @param timeInterval time interval between epochs expressed in seconds (s).
1288      * @param frame        body ECEF frame containing current position, velocity and
1289      *                     body-to-ECEF frame coordinate transformation.
1290      *                     Notice that current position contained in this frame is ignored.
1291      * @param oldFrame     body ECEF frame containing previous position, velocity and
1292      *                     body-to-ECEF frame coordinate transformation. The position
1293      *                     contained in this frame is the position where gravity is evaluated; to be consistent
1294      *                     with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be
1295      *                     the position at the start of the time interval.
1296      * @return a new body kinematics instance.
1297      * @throws IllegalArgumentException if provided time interval is negative.
1298      */
1299     public BodyKinematics estimateAndReturnNew(
1300             final double timeInterval, final ECEFFrame frame, final ECEFFrame oldFrame) {
1301         return estimateKinematicsAndReturnNew(timeInterval, frame, oldFrame);
1302     }
1303 
1304     /**
1305      * Estimates body kinematics (specific force applied to a body and its angular rates).
1306      *
1307      * @param timeInterval time interval between epochs.
1308      * @param frame        body ECEF frame containing current position, velocity and
1309      *                     body-to-ECEF frame coordinate transformation.
1310      *                     Notice that current position contained in this frame is ignored.
1311      * @param oldFrame     body ECEF frame containing previous position, velocity and
1312      *                     body-to-ECEF frame coordinate transformation. The position
1313      *                     contained in this frame is the position where gravity is evaluated; to be consistent
1314      *                     with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be
1315      *                     the position at the start of the time interval.
1316      * @return a new body kinematics instance.
1317      * @throws IllegalArgumentException if provided time interval is negative.
1318      */
1319     public BodyKinematics estimateAndReturnNew(
1320             final Time timeInterval, final ECEFFrame frame, final ECEFFrame oldFrame) {
1321         return estimateKinematicsAndReturnNew(timeInterval, frame, oldFrame);
1322     }
1323 
1324     /**
1325      * Estimates body kinematics (specific force applied to a body and its angular rates).
1326      *
1327      * @param timeInterval time interval between epochs expressed in seconds (s).
1328      * @param c            body-to-ECEF frame coordinate transformation matrix.
1329      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1330      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
1331      *                     resolved along ECEF-frame axes.
1332      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
1333      *                     resolved along ECEF-frame axes.
1334      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
1335      *                     resolved along ECEF-frame axes.
1336      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1337      *                     frame, resolved along ECEF-frame axes.
1338      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1339      *                     frame, resolved along ECEF-frame axes.
1340      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1341      *                     frame, resolved along ECEF-frame axes.
1342      * @param x            cartesian x coordinate of body position expressed in meters (m)
1343      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1344      *                     This is the position where gravity is evaluated; to be consistent with
1345      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1346      *                     position at the start of the time interval.
1347      * @param y            cartesian y coordinate of body position expressed in meters (m)
1348      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1349      *                     This is the position where gravity is evaluated; to be consistent with
1350      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1351      *                     position at the start of the time interval.
1352      * @param z            cartesian z coordinate of body position expressed in meters (m)
1353      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1354      *                     This is the position where gravity is evaluated; to be consistent with
1355      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1356      *                     position at the start of the time interval.
1357      * @return a new body kinematics instance.
1358      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1359      *                                  are not ECEF frame valid.
1360      */
1361     public BodyKinematics estimateAndReturnNew(
1362             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1363             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
1364             final double x, final double y, final double z) {
1365         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z);
1366     }
1367 
1368     /**
1369      * Estimates body kinematics (specific force applied to a body and its angular rates).
1370      *
1371      * @param timeInterval time interval between epochs.
1372      * @param c            body-to-ECEF frame coordinate transformation matrix.
1373      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1374      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
1375      *                     resolved along ECEF-frame axes.
1376      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
1377      *                     resolved along ECEF-frame axes.
1378      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
1379      *                     resolved along ECEF-frame axes.
1380      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1381      *                     frame, resolved along ECEF-frame axes.
1382      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1383      *                     frame, resolved along ECEF-frame axes.
1384      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1385      *                     frame, resolved along ECEF-frame axes.
1386      * @param x            cartesian x coordinate of body position expressed in meters (m)
1387      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1388      *                     This is the position where gravity is evaluated; to be consistent with
1389      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1390      *                     position at the start of the time interval.
1391      * @param y            cartesian y coordinate of body position expressed in meters (m)
1392      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1393      *                     This is the position where gravity is evaluated; to be consistent with
1394      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1395      *                     position at the start of the time interval.
1396      * @param z            cartesian z coordinate of body position expressed in meters (m)
1397      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1398      *                     This is the position where gravity is evaluated; to be consistent with
1399      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1400      *                     position at the start of the time interval.
1401      * @return a new body kinematics instance.
1402      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1403      *                                  are not ECEF frame valid.
1404      */
1405     public BodyKinematics estimateAndReturnNew(
1406             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1407             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
1408             final double x, final double y, final double z) {
1409         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z);
1410     }
1411 
1412     /**
1413      * Estimates body kinematics (specific force applied to a body and its angular rates).
1414      *
1415      * @param timeInterval time interval between epochs expressed in seconds (s).
1416      * @param c            body-to-ECEF frame coordinate transformation matrix.
1417      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1418      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
1419      *                     resolved along ECEF-frame axes.
1420      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
1421      *                     resolved along ECEF-frame axes.
1422      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
1423      *                     resolved along ECEF-frame axes.
1424      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1425      *                     frame, resolved along ECEF-frame axes.
1426      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1427      *                     frame, resolved along ECEF-frame axes.
1428      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1429      *                     frame, resolved along ECEF-frame axes.
1430      * @param position     cartesian body position resolved along ECEF-frame axes.
1431      *                     This is the position where gravity is evaluated; to be consistent with
1432      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1433      *                     position at the start of the time interval.
1434      * @return a new body kinematics instance.
1435      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1436      *                                  are not ECEF frame valid.
1437      */
1438     public BodyKinematics estimateAndReturnNew(
1439             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1440             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
1441             final ECEFPosition position) {
1442         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position);
1443     }
1444 
1445     /**
1446      * Estimates body kinematics (specific force applied to a body and its angular rates).
1447      *
1448      * @param timeInterval time interval between epochs.
1449      * @param c            body-to-ECEF frame coordinate transformation matrix.
1450      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1451      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
1452      *                     resolved along ECEF-frame axes.
1453      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
1454      *                     resolved along ECEF-frame axes.
1455      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
1456      *                     resolved along ECEF-frame axes.
1457      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1458      *                     frame, resolved along ECEF-frame axes.
1459      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1460      *                     frame, resolved along ECEF-frame axes.
1461      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1462      *                     frame, resolved along ECEF-frame axes.
1463      * @param position     cartesian body position resolved along ECEF-frame axes.
1464      *                     This is the position where gravity is evaluated; to be consistent with
1465      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1466      *                     position at the start of the time interval.
1467      * @return a new body kinematics instance.
1468      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1469      *                                  are not ECEF frame valid.
1470      */
1471     public BodyKinematics estimateAndReturnNew(
1472             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1473             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
1474             final ECEFPosition position) {
1475         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position);
1476     }
1477 
1478     /**
1479      * Estimates body kinematics (specific force applied to a body and its angular rates).
1480      *
1481      * @param timeInterval time interval between epochs expressed in seconds (s).
1482      * @param frame        body ECEF frame containing current position, velocity and
1483      *                     body-to-ECEF frame coordinate transformation.
1484      *                     The position contained in this frame is the position where gravity is evaluated; to
1485      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
1486      *                     callers) this must be the position at the start of the time interval. When the body
1487      *                     moves, use an overload receiving the previous frame or an explicit position instead.
1488      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1489      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1490      *                     frame, resolved along ECEF-frame axes.
1491      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1492      *                     frame, resolved along ECEF-frame axes.
1493      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1494      *                     frame, resolved along ECEF-frame axes.
1495      * @return a new body kinematics instance.
1496      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1497      *                                  are not ECEF frame valid.
1498      */
1499     public BodyKinematics estimateAndReturnNew(
1500             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
1501             final Speed oldVx, final Speed oldVy, final Speed oldVz) {
1502         return estimateKinematicsAndReturnNew(timeInterval, frame, oldC, oldVx, oldVy, oldVz);
1503     }
1504 
1505     /**
1506      * Estimates body kinematics (specific force applied to a body and its angular rates).
1507      *
1508      * @param timeInterval time interval between epochs.
1509      * @param frame        body ECEF frame containing current position, velocity and
1510      *                     body-to-ECEF frame coordinate transformation.
1511      *                     The position contained in this frame is the position where gravity is evaluated; to
1512      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
1513      *                     callers) this must be the position at the start of the time interval. When the body
1514      *                     moves, use an overload receiving the previous frame or an explicit position instead.
1515      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1516      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1517      *                     frame, resolved along ECEF-frame axes.
1518      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1519      *                     frame, resolved along ECEF-frame axes.
1520      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1521      *                     frame, resolved along ECEF-frame axes.
1522      * @return a new body kinematics instance.
1523      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1524      *                                  are not ECEF frame valid.
1525      */
1526     public BodyKinematics estimateAndReturnNew(
1527             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
1528             final Speed oldVx, final Speed oldVy, final Speed oldVz) {
1529         return estimateKinematicsAndReturnNew(timeInterval, frame, oldC, oldVx, oldVy, oldVz);
1530     }
1531 
1532     /**
1533      * Estimates body kinematics (specific force applied to a body and its angular rates).
1534      *
1535      * @param timeInterval time interval between epochs expressed in seconds (s).
1536      * @param c            body-to-ECEF frame coordinate transformation matrix.
1537      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1538      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
1539      *                     resolved along ECEF-frame axes and expressed in meters per
1540      *                     second (m/s).
1541      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
1542      *                     resolved along ECEF-frame axes and expressed in meters per
1543      *                     second (m/s).
1544      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
1545      *                     resolved along ECEF-frame axes and expressed in meters per
1546      *                     second (m/s).
1547      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1548      *                     frame, resolved along ECEF-frame axes and expressed in meters
1549      *                     per second (m/s).
1550      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1551      *                     frame, resolved along ECEF-frame axes and expressed in meters
1552      *                     per second (m/s).
1553      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1554      *                     frame, resolved along ECEF-frame axes and expressed in meters
1555      *                     per second (m/s).
1556      * @param position     body position expressed in meters (m) with respect ECEF frame,
1557      *                     resolved along ECEF-frame axes.
1558      *                     This is the position where gravity is evaluated; to be consistent with
1559      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1560      *                     position at the start of the time interval.
1561      * @return a new body kinematics instance.
1562      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1563      *                                  are not ECEF frame valid.
1564      */
1565     public BodyKinematics estimateAndReturnNew(
1566             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1567             final double vx, final double vy, final double vz,
1568             final double oldVx, final double oldVy, final double oldVz, final Point3D position) {
1569         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position);
1570     }
1571 
1572     /**
1573      * Estimates body kinematics (specific force applied to a body and its angular rates).
1574      *
1575      * @param timeInterval time interval between epochs.
1576      * @param c            body-to-ECEF frame coordinate transformation matrix.
1577      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1578      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
1579      *                     resolved along ECEF-frame axes and expressed in meters per
1580      *                     second (m/s).
1581      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
1582      *                     resolved along ECEF-frame axes and expressed in meters per
1583      *                     second (m/s).
1584      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
1585      *                     resolved along ECEF-frame axes and expressed in meters per
1586      *                     second (m/s).
1587      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1588      *                     frame, resolved along ECEF-frame axes and expressed in meters
1589      *                     per second (m/s).
1590      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1591      *                     frame, resolved along ECEF-frame axes and expressed in meters
1592      *                     per second (m/s).
1593      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1594      *                     frame, resolved along ECEF-frame axes and expressed in meters
1595      *                     per second (m/s).
1596      * @param position     body position expressed in meters (m) with respect ECEF frame,
1597      *                     resolved along ECEF-frame axes.
1598      *                     This is the position where gravity is evaluated; to be consistent with
1599      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1600      *                     position at the start of the time interval.
1601      * @return a new body kinematics instance.
1602      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1603      *                                  are not ECEF frame valid.
1604      */
1605     public BodyKinematics estimateAndReturnNew(
1606             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1607             final double vx, final double vy, final double vz,
1608             final double oldVx, final double oldVy, final double oldVz, final Point3D position) {
1609         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position);
1610     }
1611 
1612     /**
1613      * Estimates body kinematics (specific force applied to a body and its angular rates).
1614      *
1615      * @param timeInterval time interval between epochs expressed in seconds (s).
1616      * @param c            body-to-ECEF frame coordinate transformation matrix.
1617      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1618      * @param velocity     velocity of body frame with respect ECEF frame.
1619      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
1620      * @param position     body position expressed in meters (m) with respect ECEF frame,
1621      *                     resolved along ECEF-frame axes.
1622      *                     This is the position where gravity is evaluated; to be consistent with
1623      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1624      *                     position at the start of the time interval.
1625      * @return a new body kinematics instance.
1626      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1627      *                                  are not ECEF frame valid.
1628      */
1629     public BodyKinematics estimateAndReturnNew(
1630             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1631             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final Point3D position) {
1632         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, velocity, oldVelocity, position);
1633     }
1634 
1635     /**
1636      * Estimates body kinematics (specific force applied to a body and its angular rates).
1637      *
1638      * @param timeInterval time interval between epochs.
1639      * @param c            body-to-ECEF frame coordinate transformation matrix.
1640      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1641      * @param velocity     velocity of body frame with respect ECEF frame.
1642      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
1643      * @param position     body position expressed in meters (m) with respect ECEF frame,
1644      *                     resolved along ECEF-frame axes.
1645      *                     This is the position where gravity is evaluated; to be consistent with
1646      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1647      *                     position at the start of the time interval.
1648      * @return a new body kinematics instance.
1649      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1650      *                                  are not ECEF frame valid.
1651      */
1652     public BodyKinematics estimateAndReturnNew(
1653             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1654             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final Point3D position) {
1655         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, velocity, oldVelocity, position);
1656     }
1657 
1658     /**
1659      * Estimates body kinematics (specific force applied to a body and its angular rates).
1660      *
1661      * @param timeInterval time interval between epochs expressed in seconds (s).
1662      * @param c            boy-to-ECEF frame coordinate transformation matrix.
1663      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1664      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
1665      *                     resolved along ECEF-frame axes.
1666      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
1667      *                     resolved along ECEF-frame axes.
1668      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
1669      *                     resolved along ECEF-frame axes.
1670      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1671      *                     frame, resolved along ECEF-frame axes.
1672      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1673      *                     frame, resolved along ECEF-frame axes.
1674      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1675      *                     frame, resolved along ECEF-frame axes.
1676      * @param position     body position expressed in meters (m) with respect ECEF frame,
1677      *                     resolved along ECEF-frame axes.
1678      *                     This is the position where gravity is evaluated; to be consistent with
1679      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1680      *                     position at the start of the time interval.
1681      * @return a new body kinematics instance.
1682      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1683      *                                  are not ECEF frame valid.
1684      */
1685     public BodyKinematics estimateAndReturnNew(
1686             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1687             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
1688             final Point3D position) {
1689         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position);
1690     }
1691 
1692     /**
1693      * Estimates body kinematics (specific force applied to a body and its angular rates).
1694      *
1695      * @param timeInterval time interval between epochs.
1696      * @param c            boy-to-ECEF frame coordinate transformation matrix.
1697      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1698      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
1699      *                     resolved along ECEF-frame axes.
1700      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
1701      *                     resolved along ECEF-frame axes.
1702      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
1703      *                     resolved along ECEF-frame axes.
1704      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1705      *                     frame, resolved along ECEF-frame axes.
1706      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1707      *                     frame, resolved along ECEF-frame axes.
1708      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1709      *                     frame, resolved along ECEF-frame axes.
1710      * @param position     body position expressed in meters (m) with respect ECEF frame,
1711      *                     resolved along ECEF-frame axes.
1712      *                     This is the position where gravity is evaluated; to be consistent with
1713      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1714      *                     position at the start of the time interval.
1715      * @return a new body kinematics instance.
1716      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1717      *                                  are not ECEF frame valid.
1718      */
1719     public BodyKinematics estimateAndReturnNew(
1720             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1721             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
1722             final Point3D position) {
1723         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position);
1724     }
1725 
1726     /**
1727      * Estimates body kinematics (specific force applied to a body and its angular rates)..
1728      *
1729      * @param timeInterval time interval between epochs expressed in seconds (s).
1730      * @param c            body-to-ECEF-frame coordinate transformation.
1731      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1732      * @param vx           x coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
1733      *                     along ECEF-frame axes.
1734      * @param vy           y coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
1735      *                     along ECEF-frame axes.
1736      * @param vz           z coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
1737      *                     along ECEF-frame axes.
1738      * @param oldVx        x coordinate of previous velocity of body frame expressed in meters per second (m/s) and
1739      *                     resolved along ECEF-frame axes.
1740      * @param oldVy        y coordinate of previous velocity of body frame expressed in meters per second (m/s) and
1741      *                     resolved along ECEF-frame axes.
1742      * @param oldVz        z coordinate of previous velocity of body frame expressed in meters per second (m/s) and
1743      *                     resolved along ECEF-frame axes.
1744      * @param x            cartesian x coordinate of body position expressed in meters (m) and resolved along
1745      *                     ECEF-frame axes.
1746      *                     This is the position where gravity is evaluated; to be consistent with
1747      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1748      *                     position at the start of the time interval.
1749      * @param y            cartesian y coordinate of body position expressed in meters (m) and resolved along
1750      *                     ECEF-frame axes.
1751      *                     This is the position where gravity is evaluated; to be consistent with
1752      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1753      *                     position at the start of the time interval.
1754      * @param z            cartesian z coordinate of body position expressed in meters (m) and resolved along
1755      *                     ECEF-frame axes.
1756      *                     This is the position where gravity is evaluated; to be consistent with
1757      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1758      *                     position at the start of the time interval.
1759      * @param result       instance where estimated body kinematics will be stored.
1760      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1761      *                                  are not ECEF frame valid.
1762      */
1763     public static void estimateKinematics(
1764             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1765             final double vx, final double vy, final double vz,
1766             final double oldVx, final double oldVy, final double oldVz,
1767             final double x, final double y, final double z, final BodyKinematics result) {
1768         if (timeInterval < 0.0 || !ECEFFrame.isValidCoordinateTransformation(c)
1769                 || !ECEFFrame.isValidCoordinateTransformation(oldC)) {
1770             throw new IllegalArgumentException();
1771         }
1772 
1773         if (timeInterval > 0.0) {
1774             try {
1775                 // From (2.145) determine the Earth rotation over the update interval
1776                 final var alpha = EARTH_ROTATION_RATE * timeInterval;
1777                 final var cEarth = CoordinateTransformation.eciToEcefMatrixFromAngle(alpha);
1778 
1779                 final var cBe = c.getMatrix();
1780                 cBe.transpose();
1781                 final var oldCbe = oldC.getMatrix();
1782 
1783                 // cOldNew = cBe' * cEarth * oldCbe
1784                 cEarth.multiply(oldCbe);
1785                 // here cBe is cOldNew
1786                 cBe.multiply(cEarth);
1787 
1788                 // Calculate the approximate angular rate with respect an inertial frame
1789                 var alphaX = 0.5 * (cBe.getElementAt(1, 2) - cBe.getElementAt(2, 1));
1790                 var alphaY = 0.5 * (cBe.getElementAt(2, 0) - cBe.getElementAt(0, 2));
1791                 var alphaZ = 0.5 * (cBe.getElementAt(0, 1) - cBe.getElementAt(1, 0));
1792 
1793                 // Calculate and apply the scaling factor
1794                 final var temp = Math.acos(0.5 * (Utils.trace(cBe) - 1.0));
1795                 if (temp > SCALING_THRESHOLD) {
1796                     // scaling is 1 if temp is less than this
1797                     final var scale = temp / Math.sin(temp);
1798                     alphaX *= scale;
1799                     alphaY *= scale;
1800                     alphaZ *= scale;
1801                 }
1802 
1803                 // Calculate the angular rate
1804                 final var angularRateX = alphaX / timeInterval;
1805                 final var angularRateY = alphaY / timeInterval;
1806                 final var angularRateZ = alphaZ / timeInterval;
1807 
1808                 // Calculate the specific force resolved about ECEF-frame axes
1809                 // Frame (5.36)
1810                 final var vEbe = new Matrix(ROWS, 1);
1811                 vEbe.setElementAtIndex(0, vx);
1812                 vEbe.setElementAtIndex(1, vy);
1813                 vEbe.setElementAtIndex(2, vz);
1814 
1815                 final var oldVebe = new Matrix(ROWS, 1);
1816                 oldVebe.setElementAtIndex(0, oldVx);
1817                 oldVebe.setElementAtIndex(1, oldVy);
1818                 oldVebe.setElementAtIndex(2, oldVz);
1819 
1820                 final var gravity = ECEFGravityEstimator.estimateGravityAndReturnNew(x, y, z);
1821                 final var g = gravity.asMatrix();
1822 
1823                 final var earthRotationSkew = Utils.skewMatrix(new double[]{0.0, 0.0, EARTH_ROTATION_RATE});
1824                 earthRotationSkew.multiplyByScalar(2.0);
1825                 // 2.0 * earthRotationSkew * oldVebe
1826                 earthRotationSkew.multiply(oldVebe);
1827 
1828                 // vEbe - oldVebe
1829                 vEbe.subtract(oldVebe);
1830                 // (vEbe - oldVebe) / timeInterval
1831                 vEbe.multiplyByScalar(1.0 / timeInterval);
1832                 // (vEbe - oldVebe) / timeInterval - g
1833                 vEbe.subtract(g);
1834                 // fibe = (vEbe - oldVebe) / timeInterval - g + 2.0 * earthRotationSkew * oldVebe
1835                 // vEbe contains specific force resolved about ECEF-frame axes
1836                 vEbe.add(earthRotationSkew);
1837 
1838                 // Calculate the average body-to-ECEF-frame coordinate transformation
1839                 // matrix over the update interval using (5,84) and (5.85)
1840                 final var alphaNorm = Math.sqrt(alphaX * alphaX + alphaY * alphaY + alphaZ * alphaZ);
1841                 final var alphaSkew1 = Utils.skewMatrix(new double[]{alphaX, alphaY, alphaZ});
1842 
1843                 // 0.5 * skew([0, 0, alpha]) * C(-). This must use the ORIGINAL oldCbe (eq. 5.85), hence it is
1844                 // computed before oldCbe is modified in place, in the same order as ECEFInertialNavigator
1845                 final var alphaSkew2 = Utils.skewMatrix(new double[]{0.0, 0.0, alpha});
1846                 alphaSkew2.multiplyByScalar(0.5);
1847                 alphaSkew2.multiply(oldCbe);
1848 
1849                 if (alphaNorm > ALPHA_THRESHOLD) {
1850                     final var alphaNorm2 = alphaNorm * alphaNorm;
1851                     final var value1 = (1.0 - Math.cos(alphaNorm)) / alphaNorm2;
1852                     final var value2 = (1.0 - Math.sin(alphaNorm) / alphaNorm) / alphaNorm2;
1853                     final var tmp1 = alphaSkew1.multiplyByScalarAndReturnNew(value1);
1854                     final var tmp2 = alphaSkew1.multiplyByScalarAndReturnNew(value2);
1855                     tmp2.multiply(alphaSkew1);
1856 
1857                     final var tmp3 = Matrix.identity(ROWS, ROWS);
1858                     tmp3.add(tmp1);
1859                     tmp3.add(tmp2);
1860 
1861                     // C(-) * Cbb
1862                     oldCbe.multiply(tmp3);
1863                 }
1864 
1865                 // C(-) * Cbb - 0.5 * skew([0, 0, alpha]) * C(-)
1866                 oldCbe.subtract(alphaSkew2);
1867                 // oldCbe now contains the average body-to-ECEF-frame coordinate transformation
1868 
1869                 // Transform specific force to body-frame resolving axes using (5.81)
1870                 final var invAveCbe = Utils.inverse(oldCbe);
1871                 invAveCbe.multiply(vEbe);
1872 
1873                 final var specificForceX = invAveCbe.getElementAtIndex(0);
1874                 final var specificForceY = invAveCbe.getElementAtIndex(1);
1875                 final var specificForceZ = invAveCbe.getElementAtIndex(2);
1876 
1877                 // save result data
1878                 result.setSpecificForceCoordinates(specificForceX, specificForceY, specificForceZ);
1879                 result.setAngularRateCoordinates(angularRateX, angularRateY, angularRateZ);
1880 
1881             } catch (final AlgebraException ignore) {
1882                 // never happens
1883             }
1884         } else {
1885             // If time interval is zero, set angular rate and specific force to zero
1886             result.setSpecificForceCoordinates(0.0, 0.0, 0.0);
1887             result.setAngularRateCoordinates(0.0, 0.0, 0.0);
1888         }
1889     }
1890 
1891     /**
1892      * Estimates body kinematics (specific force applied to a body and its angular rates).
1893      *
1894      * @param timeInterval time interval between epochs.
1895      * @param c            boy-to-ECEF frame coordinate transformation matrix.
1896      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1897      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
1898      *                     resolved along ECEF-frame axes and expressed in meters per
1899      *                     second (m/s).
1900      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
1901      *                     resolved along ECEF-frame axes and expressed in meters per
1902      *                     second (m/s).
1903      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
1904      *                     resolved along ECEF-frame axes and expressed in meters per
1905      *                     second (m/s).
1906      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
1907      *                     frame, resolved along ECEF-frame axes and expressed in meters
1908      *                     per second (m/s).
1909      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
1910      *                     frame, resolved along ECEF-frame axes and expressed in meters
1911      *                     per second (m/s).
1912      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
1913      *                     frame, resolved along ECEF-frame axes and expressed in meters
1914      *                     per second (m/s).
1915      * @param x            cartesian x coordinate of body position expressed in meters (m)
1916      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1917      *                     This is the position where gravity is evaluated; to be consistent with
1918      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1919      *                     position at the start of the time interval.
1920      * @param y            cartesian y coordinate of body position expressed in meters (m)
1921      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1922      *                     This is the position where gravity is evaluated; to be consistent with
1923      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1924      *                     position at the start of the time interval.
1925      * @param z            cartesian z coordinate of body position expressed in meters (m)
1926      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1927      *                     This is the position where gravity is evaluated; to be consistent with
1928      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1929      *                     position at the start of the time interval.
1930      * @param result       instance where body kinematics estimation will be stored.
1931      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1932      *                                  are not ECEF frame valid.
1933      */
1934     public static void estimateKinematics(
1935             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1936             final double vx, final double vy, final double vz,
1937             final double oldVx, final double oldVy, final double oldVz,
1938             final double x, final double y, final double z, final BodyKinematics result) {
1939         estimateKinematics(
1940                 TimeConverter.convert(timeInterval.getValue().doubleValue(), timeInterval.getUnit(), TimeUnit.SECOND),
1941                 c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z, result);
1942     }
1943 
1944     /**
1945      * Estimates body kinematics (specific force applied to a body and its angular rates).
1946      *
1947      * @param timeInterval time interval between epochs expressed in seconds (s).
1948      * @param c            boy-to-ECEF frame coordinate transformation matrix.
1949      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1950      * @param velocity     velocity of body frame with respect ECEF frame.
1951      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
1952      * @param x            cartesian x coordinate of body position expressed in meters (m)
1953      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1954      *                     This is the position where gravity is evaluated; to be consistent with
1955      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1956      *                     position at the start of the time interval.
1957      * @param y            cartesian y coordinate of body position expressed in meters (m)
1958      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1959      *                     This is the position where gravity is evaluated; to be consistent with
1960      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1961      *                     position at the start of the time interval.
1962      * @param z            cartesian z coordinate of body position expressed in meters (m)
1963      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1964      *                     This is the position where gravity is evaluated; to be consistent with
1965      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1966      *                     position at the start of the time interval.
1967      * @param result       instance where body kinematics estimation will be stored.
1968      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
1969      *                                  are not ECEF frame valid.
1970      */
1971     public static void estimateKinematics(
1972             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
1973             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final double x, final double y, final double z,
1974             final BodyKinematics result) {
1975         estimateKinematics(timeInterval, c, oldC, velocity.getVx(), velocity.getVy(), velocity.getVz(),
1976                 oldVelocity.getVx(), oldVelocity.getVy(), oldVelocity.getVz(), x, y, z, result);
1977     }
1978 
1979     /**
1980      * Estimates body kinematics (specific force applied to a body and its angular rates).
1981      *
1982      * @param timeInterval time interval between epochs.
1983      * @param c            boy-to-ECEF frame coordinate transformation matrix.
1984      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
1985      * @param velocity     velocity of body frame with respect ECEF frame.
1986      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
1987      * @param x            cartesian x coordinate of body position expressed in meters (m)
1988      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1989      *                     This is the position where gravity is evaluated; to be consistent with
1990      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1991      *                     position at the start of the time interval.
1992      * @param y            cartesian y coordinate of body position expressed in meters (m)
1993      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1994      *                     This is the position where gravity is evaluated; to be consistent with
1995      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
1996      *                     position at the start of the time interval.
1997      * @param z            cartesian z coordinate of body position expressed in meters (m)
1998      *                     with respect ECEF frame, resolved along ECEF-frame axes.
1999      *                     This is the position where gravity is evaluated; to be consistent with
2000      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2001      *                     position at the start of the time interval.
2002      * @param result       instance where body kinematics estimation will be stored.
2003      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2004      *                                  are not ECEF frame valid.
2005      */
2006     public static void estimateKinematics(
2007             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2008             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final double x, final double y, final double z,
2009             final BodyKinematics result) {
2010         estimateKinematics(
2011                 TimeConverter.convert(timeInterval.getValue().doubleValue(), timeInterval.getUnit(), TimeUnit.SECOND),
2012                 c, oldC, velocity, oldVelocity, x, y, z, result);
2013     }
2014 
2015     /**
2016      * Estimates body kinematics (specific force applied to a body and its angular rates)..
2017      *
2018      * @param timeInterval time interval between epochs expressed in seconds (s).
2019      * @param c            body-to-ECEF-frame coordinate transformation.
2020      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2021      * @param vx           x coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2022      *                     along ECEF-frame axes.
2023      * @param vy           y coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2024      *                     along ECEF-frame axes.
2025      * @param vz           z coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2026      *                     along ECEF-frame axes.
2027      * @param oldVx        x coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2028      *                     resolved along ECEF-frame axes.
2029      * @param oldVy        y coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2030      *                     resolved along ECEF-frame axes.
2031      * @param oldVz        z coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2032      *                     resolved along ECEF-frame axes.
2033      * @param position     cartesian body position resolved along ECEF-frame axes.
2034      *                     This is the position where gravity is evaluated; to be consistent with
2035      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2036      *                     position at the start of the time interval.
2037      * @param result       instance where estimated body kinematics will be stored.
2038      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2039      *                                  are not ECEF frame valid.
2040      */
2041     public static void estimateKinematics(
2042             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2043             final double vx, final double vy, final double vz,
2044             final double oldVx, final double oldVy, final double oldVz, final ECEFPosition position,
2045             final BodyKinematics result) {
2046         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz,
2047                 position.getX(), position.getY(), position.getZ(), result);
2048     }
2049 
2050     /**
2051      * Estimates body kinematics (specific force applied to a body and its angular rates).
2052      *
2053      * @param timeInterval time interval between epochs.
2054      * @param c            body-to-ECEF-frame coordinate transformation.
2055      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2056      * @param vx           x coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2057      *                     along ECEF-frame axes.
2058      * @param vy           y coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2059      *                     along ECEF-frame axes.
2060      * @param vz           z coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2061      *                     along ECEF-frame axes.
2062      * @param oldVx        x coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2063      *                     resolved along ECEF-frame axes.
2064      * @param oldVy        y coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2065      *                     resolved along ECEF-frame axes.
2066      * @param oldVz        z coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2067      *                     resolved along ECEF-frame axes.
2068      * @param position     cartesian body position resolved along ECEF-frame axes.
2069      *                     This is the position where gravity is evaluated; to be consistent with
2070      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2071      *                     position at the start of the time interval.
2072      * @param result       instance where estimated body kinematics will be stored.
2073      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2074      *                                  are not ECEF frame valid.
2075      */
2076     public static void estimateKinematics(
2077             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2078             final double vx, final double vy, final double vz,
2079             final double oldVx, final double oldVy, final double oldVz, final ECEFPosition position,
2080             final BodyKinematics result) {
2081         estimateKinematics(
2082                 TimeConverter.convert(timeInterval.getValue().doubleValue(), timeInterval.getUnit(), TimeUnit.SECOND),
2083                 c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
2084     }
2085 
2086     /**
2087      * Estimates body kinematics (specific force applied to a body and its angular rates).
2088      *
2089      * @param timeInterval time interval between epochs expressed in seconds (s).
2090      * @param c            boy-to-ECEF frame coordinate transformation matrix.
2091      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2092      * @param velocity     velocity of body frame with respect ECEF frame.
2093      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
2094      * @param position     cartesian body position resolved along ECEF-frame axes.
2095      *                     This is the position where gravity is evaluated; to be consistent with
2096      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2097      *                     position at the start of the time interval.
2098      * @param result       instance where body kinematics estimation will be stored.
2099      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2100      *                                  are not ECEF frame valid.
2101      */
2102     public static void estimateKinematics(
2103             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2104             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final ECEFPosition position,
2105             final BodyKinematics result) {
2106         estimateKinematics(timeInterval, c, oldC, velocity.getVx(), velocity.getVy(), velocity.getVz(),
2107                 oldVelocity.getVx(), oldVelocity.getVy(), oldVelocity.getVz(),
2108                 position.getX(), position.getY(), position.getZ(), result);
2109     }
2110 
2111     /**
2112      * Estimates body kinematics (specific force applied to a body and its angular rates).
2113      *
2114      * @param timeInterval time interval between epochs.
2115      * @param c            boy-to-ECEF frame coordinate transformation matrix.
2116      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2117      * @param velocity     velocity of body frame with respect ECEF frame.
2118      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
2119      * @param position     cartesian body position resolved along ECEF-frame axes.
2120      *                     This is the position where gravity is evaluated; to be consistent with
2121      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2122      *                     position at the start of the time interval.
2123      * @param result       instance where body kinematics estimation will be stored.
2124      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2125      *                                  are not ECEF frame valid.
2126      */
2127     public static void estimateKinematics(
2128             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2129             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final ECEFPosition position,
2130             final BodyKinematics result) {
2131         estimateKinematics(
2132                 TimeConverter.convert(timeInterval.getValue().doubleValue(), timeInterval.getUnit(), TimeUnit.SECOND),
2133                 c, oldC, velocity, oldVelocity, position, result);
2134     }
2135 
2136     /**
2137      * Estimates body kinematics (specific force applied to a body and its angular rates).
2138      *
2139      * @param timeInterval time interval between epochs expressed in seconds (s).
2140      * @param frame        body ECEF frame containing current position, velocity and
2141      *                     body-to-ECEF frame coordinate transformation.
2142      *                     The position contained in this frame is the position where gravity is evaluated; to
2143      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
2144      *                     callers) this must be the position at the start of the time interval. When the body
2145      *                     moves, use an overload receiving the previous frame or an explicit position instead.
2146      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2147      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2148      *                     frame, resolved along ECEF-frame axes and expressed in meters
2149      *                     per second (m/s).
2150      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2151      *                     frame, resolved along ECEF-frame axes and expressed in meters
2152      *                     per second (m/s).
2153      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2154      *                     frame, resolved along ECEF-frame axes and expressed in meters
2155      *                     per second (m/s).
2156      * @param result       instance where body kinematics estimation will be stored.
2157      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2158      *                                  are not ECEF frame valid.
2159      */
2160     public static void estimateKinematics(
2161             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
2162             final double oldVx, final double oldVy, final double oldVz, final BodyKinematics result) {
2163         estimateKinematics(timeInterval, frame.getCoordinateTransformation(), oldC,
2164                 frame.getVx(), frame.getVy(), frame.getVz(), oldVx, oldVy, oldVz,
2165                 frame.getX(), frame.getY(), frame.getZ(), result);
2166     }
2167 
2168     /**
2169      * Estimates body kinematics (specific force applied to a body and its angular rates).
2170      *
2171      * @param timeInterval time interval between epochs.
2172      * @param frame        body ECEF frame containing current position, velocity and
2173      *                     body-to-ECEF frame coordinate transformation.
2174      *                     The position contained in this frame is the position where gravity is evaluated; to
2175      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
2176      *                     callers) this must be the position at the start of the time interval. When the body
2177      *                     moves, use an overload receiving the previous frame or an explicit position instead.
2178      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2179      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2180      *                     frame, resolved along ECEF-frame axes and expressed in meters
2181      *                     per second (m/s).
2182      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2183      *                     frame, resolved along ECEF-frame axes and expressed in meters
2184      *                     per second (m/s).
2185      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2186      *                     frame, resolved along ECEF-frame axes and expressed in meters
2187      *                     per second (m/s).
2188      * @param result       instance where body kinematics estimation will be stored.
2189      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2190      *                                  are not ECEF frame valid.
2191      */
2192     public static void estimateKinematics(
2193             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
2194             final double oldVx, final double oldVy, final double oldVz, final BodyKinematics result) {
2195         estimateKinematics(
2196                 TimeConverter.convert(timeInterval.getValue().doubleValue(), timeInterval.getUnit(), TimeUnit.SECOND),
2197                 frame.getCoordinateTransformation(), oldC, frame.getVx(), frame.getVy(), frame.getVz(),
2198                 oldVx, oldVy, oldVz, frame.getX(), frame.getY(), frame.getZ(), result);
2199     }
2200 
2201     /**
2202      * Estimates body kinematics (specific force applied to a body and its angular rates).
2203      *
2204      * @param timeInterval time interval between epochs expressed in seconds (s).
2205      * @param frame        body ECEF frame containing current position, velocity and
2206      *                     body-to-ECEF frame coordinate transformation.
2207      *                     The position contained in this frame is the position where gravity is evaluated; to
2208      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
2209      *                     callers) this must be the position at the start of the time interval. When the body
2210      *                     moves, use an overload receiving the previous frame or an explicit position instead.
2211      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2212      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
2213      * @param result       instance where body kinematics estimation will be stored.
2214      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2215      *                                  are not ECEF frame valid.
2216      */
2217     public static void estimateKinematics(
2218             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
2219             final ECEFVelocity oldVelocity, final BodyKinematics result) {
2220         estimateKinematics(timeInterval, frame, oldC, oldVelocity.getVx(), oldVelocity.getVy(), oldVelocity.getVz(),
2221                 result);
2222     }
2223 
2224     /**
2225      * Estimates body kinematics (specific force applied to a body and its angular rates).
2226      *
2227      * @param timeInterval time interval between epochs.
2228      * @param frame        body ECEF frame containing current position, velocity and
2229      *                     body-to-ECEF frame coordinate transformation.
2230      *                     The position contained in this frame is the position where gravity is evaluated; to
2231      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
2232      *                     callers) this must be the position at the start of the time interval. When the body
2233      *                     moves, use an overload receiving the previous frame or an explicit position instead.
2234      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2235      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
2236      * @param result       instance where body kinematics estimation will be stored.
2237      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2238      *                                  are not ECEF frame valid.
2239      */
2240     public static void estimateKinematics(
2241             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
2242             final ECEFVelocity oldVelocity, final BodyKinematics result) {
2243         estimateKinematics(
2244                 TimeConverter.convert(timeInterval.getValue().doubleValue(), timeInterval.getUnit(), TimeUnit.SECOND),
2245                 frame, oldC, oldVelocity, result);
2246     }
2247 
2248     /**
2249      * Estimates body kinematics (specific force applied to a body and its angular rates).
2250      *
2251      * @param timeInterval time interval between epochs expressed in seconds (s).
2252      * @param frame        body ECEF frame containing current position, velocity and
2253      *                     body-to-ECEF frame coordinate transformation.
2254      *                     Notice that current position contained in this frame is ignored.
2255      * @param oldFrame     body ECEF frame containing previous position, velocity and
2256      *                     body-to-ECEF frame coordinate transformation. The position
2257      *                     contained in this frame is the position where gravity is evaluated; to be consistent
2258      *                     with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be
2259      *                     the position at the start of the time interval.
2260      * @param result       instance where body kinematics estimation will be stored.
2261      * @throws IllegalArgumentException if provided time interval is negative.
2262      */
2263     public static void estimateKinematics(
2264             final double timeInterval, final ECEFFrame frame, final ECEFFrame oldFrame, final BodyKinematics result) {
2265         estimateKinematics(timeInterval, frame.getCoordinateTransformation(), oldFrame.getCoordinateTransformation(),
2266                 frame.getVx(), frame.getVy(), frame.getVz(), oldFrame.getVx(), oldFrame.getVy(), oldFrame.getVz(),
2267                 oldFrame.getX(), oldFrame.getY(), oldFrame.getZ(), result);
2268     }
2269 
2270     /**
2271      * Estimates body kinematics (specific force applied to a body and its angular rates).
2272      *
2273      * @param timeInterval time interval between epochs.
2274      * @param frame        body ECEF frame containing current position, velocity and
2275      *                     body-to-ECEF frame coordinate transformation.
2276      *                     Notice that current position contained in this frame is ignored.
2277      * @param oldFrame     body ECEF frame containing previous position, velocity and
2278      *                     body-to-ECEF frame coordinate transformation. The position
2279      *                     contained in this frame is the position where gravity is evaluated; to be consistent
2280      *                     with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be
2281      *                     the position at the start of the time interval.
2282      * @param result       instance where body kinematics estimation will be stored.
2283      * @throws IllegalArgumentException if provided time interval is negative.
2284      */
2285     public static void estimateKinematics(
2286             final Time timeInterval, final ECEFFrame frame, final ECEFFrame oldFrame, final BodyKinematics result) {
2287         estimateKinematics(timeInterval, frame.getCoordinateTransformation(), oldFrame.getCoordinateTransformation(),
2288                 frame.getVx(), frame.getVy(), frame.getVz(), oldFrame.getVx(), oldFrame.getVy(), oldFrame.getVz(),
2289                 oldFrame.getX(), oldFrame.getY(), oldFrame.getZ(), result);
2290     }
2291 
2292     /**
2293      * Estimates body kinematics (specific force applied to a body and its angular rates).
2294      *
2295      * @param timeInterval time interval between epochs expressed in seconds (s).
2296      * @param c            body-to-ECEF frame coordinate transformation matrix.
2297      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2298      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
2299      *                     resolved along ECEF-frame axes.
2300      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
2301      *                     resolved along ECEF-frame axes.
2302      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
2303      *                     resolved along ECEF-frame axes.
2304      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2305      *                     frame, resolved along ECEF-frame axes.
2306      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2307      *                     frame, resolved along ECEF-frame axes.
2308      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2309      *                     frame, resolved along ECEF-frame axes.
2310      * @param x            cartesian x coordinate of body position expressed in meters (m)
2311      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2312      *                     This is the position where gravity is evaluated; to be consistent with
2313      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2314      *                     position at the start of the time interval.
2315      * @param y            cartesian y coordinate of body position expressed in meters (m)
2316      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2317      *                     This is the position where gravity is evaluated; to be consistent with
2318      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2319      *                     position at the start of the time interval.
2320      * @param z            cartesian z coordinate of body position expressed in meters (m)
2321      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2322      *                     This is the position where gravity is evaluated; to be consistent with
2323      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2324      *                     position at the start of the time interval.
2325      * @param result       instance where body kinematics estimation will be stored.
2326      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2327      *                                  are not ECEF frame valid.
2328      */
2329     public static void estimateKinematics(
2330             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2331             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
2332             final double x, final double y, final double z, final BodyKinematics result) {
2333         estimateKinematics(timeInterval, c, oldC,
2334                 SpeedConverter.convert(vx.getValue().doubleValue(), vx.getUnit(), SpeedUnit.METERS_PER_SECOND),
2335                 SpeedConverter.convert(vy.getValue().doubleValue(), vy.getUnit(), SpeedUnit.METERS_PER_SECOND),
2336                 SpeedConverter.convert(vz.getValue().doubleValue(), vz.getUnit(), SpeedUnit.METERS_PER_SECOND),
2337                 SpeedConverter.convert(oldVx.getValue().doubleValue(), oldVx.getUnit(), SpeedUnit.METERS_PER_SECOND),
2338                 SpeedConverter.convert(oldVy.getValue().doubleValue(), oldVy.getUnit(), SpeedUnit.METERS_PER_SECOND),
2339                 SpeedConverter.convert(oldVz.getValue().doubleValue(), oldVz.getUnit(), SpeedUnit.METERS_PER_SECOND),
2340                 x, y, z, result);
2341     }
2342 
2343     /**
2344      * Estimates body kinematics (specific force applied to a body and its angular rates).
2345      *
2346      * @param timeInterval time interval between epochs.
2347      * @param c            body-to-ECEF frame coordinate transformation matrix.
2348      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2349      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
2350      *                     resolved along ECEF-frame axes.
2351      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
2352      *                     resolved along ECEF-frame axes.
2353      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
2354      *                     resolved along ECEF-frame axes.
2355      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2356      *                     frame, resolved along ECEF-frame axes.
2357      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2358      *                     frame, resolved along ECEF-frame axes.
2359      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2360      *                     frame, resolved along ECEF-frame axes.
2361      * @param x            cartesian x coordinate of body position expressed in meters (m)
2362      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2363      *                     This is the position where gravity is evaluated; to be consistent with
2364      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2365      *                     position at the start of the time interval.
2366      * @param y            cartesian y coordinate of body position expressed in meters (m)
2367      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2368      *                     This is the position where gravity is evaluated; to be consistent with
2369      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2370      *                     position at the start of the time interval.
2371      * @param z            cartesian z coordinate of body position expressed in meters (m)
2372      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2373      *                     This is the position where gravity is evaluated; to be consistent with
2374      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2375      *                     position at the start of the time interval.
2376      * @param result       instance where body kinematics estimation will be stored.
2377      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2378      *                                  are not ECEF frame valid.
2379      */
2380     public static void estimateKinematics(
2381             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2382             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
2383             final double x, final double y, final double z, final BodyKinematics result) {
2384         estimateKinematics(timeInterval, c, oldC,
2385                 SpeedConverter.convert(vx.getValue().doubleValue(), vx.getUnit(), SpeedUnit.METERS_PER_SECOND),
2386                 SpeedConverter.convert(vy.getValue().doubleValue(), vy.getUnit(), SpeedUnit.METERS_PER_SECOND),
2387                 SpeedConverter.convert(vz.getValue().doubleValue(), vz.getUnit(), SpeedUnit.METERS_PER_SECOND),
2388                 SpeedConverter.convert(oldVx.getValue().doubleValue(), oldVx.getUnit(), SpeedUnit.METERS_PER_SECOND),
2389                 SpeedConverter.convert(oldVy.getValue().doubleValue(), oldVy.getUnit(), SpeedUnit.METERS_PER_SECOND),
2390                 SpeedConverter.convert(oldVz.getValue().doubleValue(), oldVz.getUnit(), SpeedUnit.METERS_PER_SECOND),
2391                 x, y, z, result);
2392     }
2393 
2394     /**
2395      * Estimates body kinematics (specific force applied to a body and its angular rates).
2396      *
2397      * @param timeInterval time interval between epochs expressed in seconds (s).
2398      * @param c            body-to-ECEF frame coordinate transformation matrix.
2399      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2400      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
2401      *                     resolved along ECEF-frame axes.
2402      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
2403      *                     resolved along ECEF-frame axes.
2404      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
2405      *                     resolved along ECEF-frame axes.
2406      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2407      *                     frame, resolved along ECEF-frame axes.
2408      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2409      *                     frame, resolved along ECEF-frame axes.
2410      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2411      *                     frame, resolved along ECEF-frame axes.
2412      * @param position     cartesian body position resolved along ECEF-frame axes.
2413      *                     This is the position where gravity is evaluated; to be consistent with
2414      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2415      *                     position at the start of the time interval.
2416      * @param result       instance where body kinematics estimation will be stored.
2417      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2418      *                                  are not ECEF frame valid.
2419      */
2420     public static void estimateKinematics(
2421             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2422             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
2423             final ECEFPosition position, final BodyKinematics result) {
2424         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz,
2425                 position.getX(), position.getY(), position.getZ(), result);
2426     }
2427 
2428     /**
2429      * Estimates body kinematics (specific force applied to a body and its angular rates).
2430      *
2431      * @param timeInterval time interval between epochs.
2432      * @param c            body-to-ECEF frame coordinate transformation matrix.
2433      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2434      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
2435      *                     resolved along ECEF-frame axes.
2436      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
2437      *                     resolved along ECEF-frame axes.
2438      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
2439      *                     resolved along ECEF-frame axes.
2440      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2441      *                     frame, resolved along ECEF-frame axes.
2442      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2443      *                     frame, resolved along ECEF-frame axes.
2444      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2445      *                     frame, resolved along ECEF-frame axes.
2446      * @param position     cartesian body position resolved along ECEF-frame axes.
2447      *                     This is the position where gravity is evaluated; to be consistent with
2448      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2449      *                     position at the start of the time interval.
2450      * @param result       instance where body kinematics estimation will be stored.
2451      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2452      *                                  are not ECEF frame valid.
2453      */
2454     public static void estimateKinematics(
2455             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2456             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
2457             final ECEFPosition position, final BodyKinematics result) {
2458         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz,
2459                 position.getX(), position.getY(), position.getZ(), result);
2460     }
2461 
2462     /**
2463      * Estimates body kinematics (specific force applied to a body and its angular rates).
2464      *
2465      * @param timeInterval time interval between epochs expressed in seconds (s).
2466      * @param frame        body ECEF frame containing current position, velocity and
2467      *                     body-to-ECEF frame coordinate transformation.
2468      *                     The position contained in this frame is the position where gravity is evaluated; to
2469      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
2470      *                     callers) this must be the position at the start of the time interval. When the body
2471      *                     moves, use an overload receiving the previous frame or an explicit position instead.
2472      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2473      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2474      *                     frame, resolved along ECEF-frame axes.
2475      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2476      *                     frame, resolved along ECEF-frame axes.
2477      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2478      *                     frame, resolved along ECEF-frame axes.
2479      * @param result       instance where body kinematics estimation will be stored.
2480      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2481      *                                  are not ECEF frame valid.
2482      */
2483     public static void estimateKinematics(
2484             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
2485             final Speed oldVx, final Speed oldVy, final Speed oldVz, final BodyKinematics result) {
2486         estimateKinematics(timeInterval, frame, oldC,
2487                 SpeedConverter.convert(oldVx.getValue().doubleValue(), oldVx.getUnit(), SpeedUnit.METERS_PER_SECOND),
2488                 SpeedConverter.convert(oldVy.getValue().doubleValue(), oldVy.getUnit(), SpeedUnit.METERS_PER_SECOND),
2489                 SpeedConverter.convert(oldVz.getValue().doubleValue(), oldVz.getUnit(), SpeedUnit.METERS_PER_SECOND),
2490                 result);
2491     }
2492 
2493     /**
2494      * Estimates body kinematics (specific force applied to a body and its angular rates).
2495      *
2496      * @param timeInterval time interval between epochs.
2497      * @param frame        body ECEF frame containing current position, velocity and
2498      *                     body-to-ECEF frame coordinate transformation.
2499      *                     The position contained in this frame is the position where gravity is evaluated; to
2500      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
2501      *                     callers) this must be the position at the start of the time interval. When the body
2502      *                     moves, use an overload receiving the previous frame or an explicit position instead.
2503      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2504      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2505      *                     frame, resolved along ECEF-frame axes.
2506      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2507      *                     frame, resolved along ECEF-frame axes.
2508      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2509      *                     frame, resolved along ECEF-frame axes.
2510      * @param result       instance where body kinematics estimation will be stored.
2511      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2512      *                                  are not ECEF frame valid.
2513      */
2514     public static void estimateKinematics(
2515             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
2516             final Speed oldVx, final Speed oldVy, final Speed oldVz, final BodyKinematics result) {
2517         estimateKinematics(timeInterval, frame, oldC,
2518                 SpeedConverter.convert(oldVx.getValue().doubleValue(), oldVx.getUnit(), SpeedUnit.METERS_PER_SECOND),
2519                 SpeedConverter.convert(oldVy.getValue().doubleValue(), oldVy.getUnit(), SpeedUnit.METERS_PER_SECOND),
2520                 SpeedConverter.convert(oldVz.getValue().doubleValue(), oldVz.getUnit(), SpeedUnit.METERS_PER_SECOND),
2521                 result);
2522     }
2523 
2524     /**
2525      * Estimates body kinematics (specific force applied to a body and its angular rates).
2526      *
2527      * @param timeInterval time interval between epochs expressed in seconds (s).
2528      * @param c            body-to-ECEF frame coordinate transformation matrix.
2529      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2530      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
2531      *                     resolved along ECEF-frame axes and expressed in meters per
2532      *                     second (m/s).
2533      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
2534      *                     resolved along ECEF-frame axes and expressed in meters per
2535      *                     second (m/s).
2536      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
2537      *                     resolved along ECEF-frame axes and expressed in meters per
2538      *                     second (m/s).
2539      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2540      *                     frame, resolved along ECEF-frame axes and expressed in meters
2541      *                     per second (m/s).
2542      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2543      *                     frame, resolved along ECEF-frame axes and expressed in meters
2544      *                     per second (m/s).
2545      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2546      *                     frame, resolved along ECEF-frame axes and expressed in meters
2547      *                     per second (m/s).
2548      * @param position     body position expressed in meters (m) with respect ECEF frame,
2549      *                     resolved along ECEF-frame axes.
2550      *                     This is the position where gravity is evaluated; to be consistent with
2551      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2552      *                     position at the start of the time interval.
2553      * @param result       instance where body kinematics estimation will be stored.
2554      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2555      *                                  are not ECEF frame valid.
2556      */
2557     public static void estimateKinematics(
2558             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2559             final double vx, final double vy, final double vz,
2560             final double oldVx, final double oldVy, final double oldVz, final Point3D position,
2561             final BodyKinematics result) {
2562         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz,
2563                 position.getInhomX(), position.getInhomY(), position.getInhomZ(), result);
2564     }
2565 
2566     /**
2567      * Estimates body kinematics (specific force applied to a body and its angular rates).
2568      *
2569      * @param timeInterval time interval between epochs.
2570      * @param c            body-to-ECEF frame coordinate transformation matrix.
2571      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2572      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
2573      *                     resolved along ECEF-frame axes and expressed in meters per
2574      *                     second (m/s).
2575      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
2576      *                     resolved along ECEF-frame axes and expressed in meters per
2577      *                     second (m/s).
2578      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
2579      *                     resolved along ECEF-frame axes and expressed in meters per
2580      *                     second (m/s).
2581      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2582      *                     frame, resolved along ECEF-frame axes and expressed in meters
2583      *                     per second (m/s).
2584      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2585      *                     frame, resolved along ECEF-frame axes and expressed in meters
2586      *                     per second (m/s).
2587      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2588      *                     frame, resolved along ECEF-frame axes and expressed in meters
2589      *                     per second (m/s).
2590      * @param position     body position expressed in meters (m) with respect ECEF frame,
2591      *                     resolved along ECEF-frame axes.
2592      *                     This is the position where gravity is evaluated; to be consistent with
2593      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2594      *                     position at the start of the time interval.
2595      * @param result       instance where body kinematics estimation will be stored.
2596      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2597      *                                  are not ECEF frame valid.
2598      */
2599     public static void estimateKinematics(
2600             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2601             final double vx, final double vy, final double vz,
2602             final double oldVx, final double oldVy, final double oldVz, final Point3D position,
2603             final BodyKinematics result) {
2604         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz,
2605                 position.getInhomX(), position.getInhomY(), position.getInhomZ(), result);
2606     }
2607 
2608     /**
2609      * Estimates body kinematics (specific force applied to a body and its angular rates).
2610      *
2611      * @param timeInterval time interval between epochs expressed in seconds (s).
2612      * @param c            body-to-ECEF frame coordinate transformation matrix.
2613      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2614      * @param velocity     velocity of body frame with respect ECEF frame.
2615      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
2616      * @param position     body position expressed in meters (m) with respect ECEF frame,
2617      *                     resolved along ECEF-frame axes.
2618      *                     This is the position where gravity is evaluated; to be consistent with
2619      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2620      *                     position at the start of the time interval.
2621      * @param result       instance where body kinematics estimation will be stored.
2622      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2623      *                                  are not ECEF frame valid.
2624      */
2625     public static void estimateKinematics(
2626             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2627             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final Point3D position,
2628             final BodyKinematics result) {
2629         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity,
2630                 position.getInhomX(), position.getInhomY(), position.getInhomZ(), result);
2631     }
2632 
2633     /**
2634      * Estimates body kinematics (specific force applied to a body and its angular rates).
2635      *
2636      * @param timeInterval time interval between epochs.
2637      * @param c            body-to-ECEF frame coordinate transformation matrix.
2638      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2639      * @param velocity     velocity of body frame with respect ECEF frame.
2640      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
2641      * @param position     body position expressed in meters (m) with respect ECEF frame,
2642      *                     resolved along ECEF-frame axes.
2643      *                     This is the position where gravity is evaluated; to be consistent with
2644      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2645      *                     position at the start of the time interval.
2646      * @param result       instance where body kinematics estimation will be stored.
2647      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2648      *                                  are not ECEF frame valid.
2649      */
2650     public static void estimateKinematics(
2651             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2652             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final Point3D position,
2653             final BodyKinematics result) {
2654         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity,
2655                 position.getInhomX(), position.getInhomY(), position.getInhomZ(), result);
2656     }
2657 
2658     /**
2659      * Estimates body kinematics (specific force applied to a body and its angular rates).
2660      *
2661      * @param timeInterval time interval between epochs expressed in seconds (s).
2662      * @param c            boy-to-ECEF frame coordinate transformation matrix.
2663      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2664      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
2665      *                     resolved along ECEF-frame axes.
2666      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
2667      *                     resolved along ECEF-frame axes.
2668      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
2669      *                     resolved along ECEF-frame axes.
2670      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2671      *                     frame, resolved along ECEF-frame axes.
2672      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2673      *                     frame, resolved along ECEF-frame axes.
2674      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2675      *                     frame, resolved along ECEF-frame axes.
2676      * @param position     body position expressed in meters (m) with respect ECEF frame,
2677      *                     resolved along ECEF-frame axes.
2678      *                     This is the position where gravity is evaluated; to be consistent with
2679      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2680      *                     position at the start of the time interval.
2681      * @param result       instance where body kinematics estimation will be stored.
2682      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2683      *                                  are not ECEF frame valid.
2684      */
2685     public static void estimateKinematics(
2686             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2687             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
2688             final Point3D position, final BodyKinematics result) {
2689         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz,
2690                 position.getInhomX(), position.getInhomY(), position.getInhomZ(), result);
2691     }
2692 
2693     /**
2694      * Estimates body kinematics (specific force applied to a body and its angular rates).
2695      *
2696      * @param timeInterval time interval between epochs.
2697      * @param c            boy-to-ECEF frame coordinate transformation matrix.
2698      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2699      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
2700      *                     resolved along ECEF-frame axes.
2701      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
2702      *                     resolved along ECEF-frame axes.
2703      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
2704      *                     resolved along ECEF-frame axes.
2705      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2706      *                     frame, resolved along ECEF-frame axes.
2707      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2708      *                     frame, resolved along ECEF-frame axes.
2709      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2710      *                     frame, resolved along ECEF-frame axes.
2711      * @param position     body position expressed in meters (m) with respect ECEF frame,
2712      *                     resolved along ECEF-frame axes.
2713      *                     This is the position where gravity is evaluated; to be consistent with
2714      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2715      *                     position at the start of the time interval.
2716      * @param result       instance where body kinematics estimation will be stored.
2717      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2718      *                                  are not ECEF frame valid.
2719      */
2720     public static void estimateKinematics(
2721             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2722             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
2723             final Point3D position, final BodyKinematics result) {
2724         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz,
2725                 position.getInhomX(), position.getInhomY(), position.getInhomZ(), result);
2726     }
2727 
2728     /**
2729      * Estimates body kinematics (specific force applied to a body and its angular rates).
2730      *
2731      * @param timeInterval time interval between epochs expressed in seconds (s).
2732      * @param c            body-to-ECEF frame coordinate transformation matrix.
2733      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2734      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
2735      *                     resolved along ECEF-frame axes and expressed in meters per
2736      *                     second (m/s).
2737      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
2738      *                     resolved along ECEF-frame axes and expressed in meters per
2739      *                     second (m/s).
2740      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
2741      *                     resolved along ECEF-frame axes and expressed in meters per
2742      *                     second (m/s).
2743      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2744      *                     frame, resolved along ECEF-frame axes and expressed in meters
2745      *                     per second (m/s).
2746      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2747      *                     frame, resolved along ECEF-frame axes and expressed in meters
2748      *                     per second (m/s).
2749      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2750      *                     frame, resolved along ECEF-frame axes and expressed in meters
2751      *                     per second (m/s).
2752      * @param x            cartesian x coordinate of body position expressed in meters (m)
2753      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2754      *                     This is the position where gravity is evaluated; to be consistent with
2755      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2756      *                     position at the start of the time interval.
2757      * @param y            cartesian y coordinate of body position expressed in meters (m)
2758      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2759      *                     This is the position where gravity is evaluated; to be consistent with
2760      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2761      *                     position at the start of the time interval.
2762      * @param z            cartesian z coordinate of body position expressed in meters (m)
2763      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2764      *                     This is the position where gravity is evaluated; to be consistent with
2765      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2766      *                     position at the start of the time interval.
2767      * @return a new body kinematics instance.
2768      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2769      *                                  are not ECEF frame valid.
2770      */
2771     public static BodyKinematics estimateKinematicsAndReturnNew(
2772             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2773             final double vx, final double vy, final double vz,
2774             final double oldVx, final double oldVy, final double oldVz,
2775             final double x, final double y, final double z) {
2776         final var result = new BodyKinematics();
2777         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z, result);
2778         return result;
2779     }
2780 
2781     /**
2782      * Estimates body kinematics (specific force applied to a body and its angular rates).
2783      *
2784      * @param timeInterval time interval between.
2785      * @param c            body-to-ECEF frame coordinate transformation matrix.
2786      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2787      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
2788      *                     resolved along ECEF-frame axes and expressed in meters per
2789      *                     second (m/s).
2790      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
2791      *                     resolved along ECEF-frame axes and expressed in meters per
2792      *                     second (m/s).
2793      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
2794      *                     resolved along ECEF-frame axes and expressed in meters per
2795      *                     second (m/s).
2796      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
2797      *                     frame, resolved along ECEF-frame axes and expressed in meters
2798      *                     per second (m/s).
2799      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
2800      *                     frame, resolved along ECEF-frame axes and expressed in meters
2801      *                     per second (m/s).
2802      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
2803      *                     frame, resolved along ECEF-frame axes and expressed in meters
2804      *                     per second (m/s).
2805      * @param x            cartesian x coordinate of body position expressed in meters (m)
2806      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2807      *                     This is the position where gravity is evaluated; to be consistent with
2808      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2809      *                     position at the start of the time interval.
2810      * @param y            cartesian y coordinate of body position expressed in meters (m)
2811      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2812      *                     This is the position where gravity is evaluated; to be consistent with
2813      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2814      *                     position at the start of the time interval.
2815      * @param z            cartesian z coordinate of body position expressed in meters (m)
2816      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2817      *                     This is the position where gravity is evaluated; to be consistent with
2818      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2819      *                     position at the start of the time interval.
2820      * @return a new body kinematics instance.
2821      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2822      *                                  are not ECEF frame valid.
2823      */
2824     public static BodyKinematics estimateKinematicsAndReturnNew(
2825             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2826             final double vx, final double vy, final double vz,
2827             final double oldVx, final double oldVy, final double oldVz,
2828             final double x, final double y, final double z) {
2829         final var result = new BodyKinematics();
2830         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z, result);
2831         return result;
2832     }
2833 
2834     /**
2835      * Estimates body kinematics (specific force applied to a body and its angular rates).
2836      *
2837      * @param timeInterval time interval between epochs expressed in seconds (s).
2838      * @param c            boy-to-ECEF frame coordinate transformation matrix.
2839      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2840      * @param velocity     velocity of body frame with respect ECEF frame.
2841      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
2842      * @param x            cartesian x coordinate of body position expressed in meters (m)
2843      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2844      *                     This is the position where gravity is evaluated; to be consistent with
2845      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2846      *                     position at the start of the time interval.
2847      * @param y            cartesian y coordinate of body position expressed in meters (m)
2848      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2849      *                     This is the position where gravity is evaluated; to be consistent with
2850      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2851      *                     position at the start of the time interval.
2852      * @param z            cartesian z coordinate of body position expressed in meters (m)
2853      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2854      *                     This is the position where gravity is evaluated; to be consistent with
2855      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2856      *                     position at the start of the time interval.
2857      * @return a new body kinematics instance.
2858      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2859      *                                  are not ECEF frame valid.
2860      */
2861     public static BodyKinematics estimateKinematicsAndReturnNew(
2862             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2863             final ECEFVelocity velocity, final ECEFVelocity oldVelocity,
2864             final double x, final double y, final double z) {
2865         final var result = new BodyKinematics();
2866         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, x, y, z, result);
2867         return result;
2868     }
2869 
2870     /**
2871      * Estimates body kinematics (specific force applied to a body and its angular rates).
2872      *
2873      * @param timeInterval time interval between epochs.
2874      * @param c            boy-to-ECEF frame coordinate transformation matrix.
2875      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2876      * @param velocity     velocity of body frame with respect ECEF frame.
2877      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
2878      * @param x            cartesian x coordinate of body position expressed in meters (m)
2879      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2880      *                     This is the position where gravity is evaluated; to be consistent with
2881      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2882      *                     position at the start of the time interval.
2883      * @param y            cartesian y coordinate of body position expressed in meters (m)
2884      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2885      *                     This is the position where gravity is evaluated; to be consistent with
2886      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2887      *                     position at the start of the time interval.
2888      * @param z            cartesian z coordinate of body position expressed in meters (m)
2889      *                     with respect ECEF frame, resolved along ECEF-frame axes.
2890      *                     This is the position where gravity is evaluated; to be consistent with
2891      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2892      *                     position at the start of the time interval.
2893      * @return a new body kinematics instance.
2894      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2895      *                                  are not ECEF frame valid.
2896      */
2897     public static BodyKinematics estimateKinematicsAndReturnNew(
2898             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2899             final ECEFVelocity velocity, final ECEFVelocity oldVelocity,
2900             final double x, final double y, final double z) {
2901         final var result = new BodyKinematics();
2902         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, x, y, z, result);
2903         return result;
2904     }
2905 
2906     /**
2907      * Estimates body kinematics (specific force applied to a body and its angular rates)..
2908      *
2909      * @param timeInterval time interval between epochs expressed in seconds (s).
2910      * @param c            body-to-ECEF-frame coordinate transformation.
2911      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2912      * @param vx           x coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2913      *                     along ECEF-frame axes.
2914      * @param vy           y coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2915      *                     along ECEF-frame axes.
2916      * @param vz           z coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2917      *                     along ECEF-frame axes.
2918      * @param oldVx        x coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2919      *                     resolved along ECEF-frame axes.
2920      * @param oldVy        y coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2921      *                     resolved along ECEF-frame axes.
2922      * @param oldVz        z coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2923      *                     resolved along ECEF-frame axes.
2924      * @param position     cartesian body position resolved along ECEF-frame axes.
2925      *                     This is the position where gravity is evaluated; to be consistent with
2926      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2927      *                     position at the start of the time interval.
2928      * @return a new body kinematics instance.
2929      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2930      *                                  are not ECEF frame valid.
2931      */
2932     public static BodyKinematics estimateKinematicsAndReturnNew(
2933             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2934             final double vx, final double vy, final double vz,
2935             final double oldVx, final double oldVy, final double oldVz, final ECEFPosition position) {
2936         final var result = new BodyKinematics();
2937         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
2938         return result;
2939     }
2940 
2941     /**
2942      * Estimates body kinematics (specific force applied to a body and its angular rates)..
2943      *
2944      * @param timeInterval time interval between epochs.
2945      * @param c            body-to-ECEF-frame coordinate transformation.
2946      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2947      * @param vx           x coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2948      *                     along ECEF-frame axes.
2949      * @param vy           y coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2950      *                     along ECEF-frame axes.
2951      * @param vz           z coordinate of velocity of body frame expressed in meters per second (m/s) and resolved
2952      *                     along ECEF-frame axes.
2953      * @param oldVx        x coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2954      *                     resolved along ECEF-frame axes.
2955      * @param oldVy        y coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2956      *                     resolved along ECEF-frame axes.
2957      * @param oldVz        z coordinate of previous velocity of body frame expressed in meters per second (m/s) and
2958      *                     resolved along ECEF-frame axes.
2959      * @param position     cartesian body position resolved along ECEF-frame axes.
2960      *                     This is the position where gravity is evaluated; to be consistent with
2961      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2962      *                     position at the start of the time interval.
2963      * @return a new body kinematics instance.
2964      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2965      *                                  are not ECEF frame valid.
2966      */
2967     public static BodyKinematics estimateKinematicsAndReturnNew(
2968             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2969             final double vx, final double vy, final double vz,
2970             final double oldVx, final double oldVy, final double oldVz, final ECEFPosition position) {
2971         final var result = new BodyKinematics();
2972         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
2973         return result;
2974     }
2975 
2976     /**
2977      * Estimates body kinematics (specific force applied to a body and its angular rates).
2978      *
2979      * @param timeInterval time interval between epochs expressed in seconds (s).
2980      * @param c            boy-to-ECEF frame coordinate transformation matrix.
2981      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
2982      * @param velocity     velocity of body frame with respect ECEF frame.
2983      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
2984      * @param position     cartesian body position resolved along ECEF-frame axes.
2985      *                     This is the position where gravity is evaluated; to be consistent with
2986      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
2987      *                     position at the start of the time interval.
2988      * @return a new body kinematics instance.
2989      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
2990      *                                  are not ECEF frame valid.
2991      */
2992     public static BodyKinematics estimateKinematicsAndReturnNew(
2993             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
2994             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final ECEFPosition position) {
2995         final var result = new BodyKinematics();
2996         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, position, result);
2997         return result;
2998     }
2999 
3000     /**
3001      * Estimates body kinematics (specific force applied to a body and its angular rates).
3002      *
3003      * @param timeInterval time interval between epochs.
3004      * @param c            boy-to-ECEF frame coordinate transformation matrix.
3005      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3006      * @param velocity     velocity of body frame with respect ECEF frame.
3007      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
3008      * @param position     cartesian body position resolved along ECEF-frame axes.
3009      *                     This is the position where gravity is evaluated; to be consistent with
3010      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3011      *                     position at the start of the time interval.
3012      * @return a new body kinematics instance.
3013      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3014      *                                  are not ECEF frame valid.
3015      */
3016     public static BodyKinematics estimateKinematicsAndReturnNew(
3017             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
3018             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final ECEFPosition position) {
3019         final var result = new BodyKinematics();
3020         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, position, result);
3021         return result;
3022     }
3023 
3024     /**
3025      * Estimates body kinematics (specific force applied to a body and its angular rates).
3026      *
3027      * @param timeInterval time interval between epochs expressed in seconds (s).
3028      * @param frame        body ECEF frame containing current position, velocity and
3029      *                     body-to-ECEF frame coordinate transformation.
3030      *                     The position contained in this frame is the position where gravity is evaluated; to
3031      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
3032      *                     callers) this must be the position at the start of the time interval. When the body
3033      *                     moves, use an overload receiving the previous frame or an explicit position instead.
3034      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3035      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3036      *                     frame, resolved along ECEF-frame axes and expressed in meters
3037      *                     per second (m/s).
3038      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3039      *                     frame, resolved along ECEF-frame axes and expressed in meters
3040      *                     per second (m/s).
3041      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3042      *                     frame, resolved along ECEF-frame axes and expressed in meters
3043      *                     per second (m/s).
3044      * @return a new body kinematics instance.
3045      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3046      *                                  are not ECEF frame valid.
3047      */
3048     public static BodyKinematics estimateKinematicsAndReturnNew(
3049             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
3050             final double oldVx, final double oldVy, final double oldVz) {
3051         final var result = new BodyKinematics();
3052         estimateKinematics(timeInterval, frame, oldC, oldVx, oldVy, oldVz, result);
3053         return result;
3054     }
3055 
3056     /**
3057      * Estimates body kinematics (specific force applied to a body and its angular rates).
3058      *
3059      * @param timeInterval time interval between epochs.
3060      * @param frame        body ECEF frame containing current position, velocity and
3061      *                     body-to-ECEF frame coordinate transformation.
3062      *                     The position contained in this frame is the position where gravity is evaluated; to
3063      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
3064      *                     callers) this must be the position at the start of the time interval. When the body
3065      *                     moves, use an overload receiving the previous frame or an explicit position instead.
3066      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3067      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3068      *                     frame, resolved along ECEF-frame axes and expressed in meters
3069      *                     per second (m/s).
3070      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3071      *                     frame, resolved along ECEF-frame axes and expressed in meters
3072      *                     per second (m/s).
3073      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3074      *                     frame, resolved along ECEF-frame axes and expressed in meters
3075      *                     per second (m/s).
3076      * @return a new body kinematics instance.
3077      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3078      *                                  are not ECEF frame valid.
3079      */
3080     public static BodyKinematics estimateKinematicsAndReturnNew(
3081             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
3082             final double oldVx, final double oldVy, final double oldVz) {
3083         final var result = new BodyKinematics();
3084         estimateKinematics(timeInterval, frame, oldC, oldVx, oldVy, oldVz, result);
3085         return result;
3086     }
3087 
3088     /**
3089      * Estimates body kinematics (specific force applied to a body and its angular rates).
3090      *
3091      * @param timeInterval time interval between epochs expressed in seconds (s).
3092      * @param frame        body ECEF frame containing current position, velocity and
3093      *                     body-to-ECEF frame coordinate transformation.
3094      *                     The position contained in this frame is the position where gravity is evaluated; to
3095      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
3096      *                     callers) this must be the position at the start of the time interval. When the body
3097      *                     moves, use an overload receiving the previous frame or an explicit position instead.
3098      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3099      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
3100      * @return a new body kinematics instance.
3101      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3102      *                                  are not ECEF frame valid.
3103      */
3104     public static BodyKinematics estimateKinematicsAndReturnNew(
3105             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
3106             final ECEFVelocity oldVelocity) {
3107         final var result = new BodyKinematics();
3108         estimateKinematics(timeInterval, frame, oldC, oldVelocity, result);
3109         return result;
3110     }
3111 
3112     /**
3113      * Estimates body kinematics (specific force applied to a body and its angular rates).
3114      *
3115      * @param timeInterval time interval between epochs.
3116      * @param frame        body ECEF frame containing current position, velocity and
3117      *                     body-to-ECEF frame coordinate transformation.
3118      *                     The position contained in this frame is the position where gravity is evaluated; to
3119      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
3120      *                     callers) this must be the position at the start of the time interval. When the body
3121      *                     moves, use an overload receiving the previous frame or an explicit position instead.
3122      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3123      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
3124      * @return a new body kinematics instance.
3125      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3126      *                                  are not ECEF frame valid.
3127      */
3128     public static BodyKinematics estimateKinematicsAndReturnNew(
3129             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
3130             final ECEFVelocity oldVelocity) {
3131         final var result = new BodyKinematics();
3132         estimateKinematics(timeInterval, frame, oldC, oldVelocity, result);
3133         return result;
3134     }
3135 
3136     /**
3137      * Estimates body kinematics (specific force applied to a body and its angular rates).
3138      *
3139      * @param timeInterval time interval between epochs expressed in seconds (s).
3140      * @param frame        body ECEF frame containing current position, velocity and
3141      *                     body-to-ECEF frame coordinate transformation.
3142      *                     Notice that current position contained in this frame is ignored.
3143      * @param oldFrame     body ECEF frame containing previous position, velocity and
3144      *                     body-to-ECEF frame coordinate transformation. The position
3145      *                     contained in this frame is the position where gravity is evaluated; to be consistent
3146      *                     with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be
3147      *                     the position at the start of the time interval.
3148      * @return a new body kinematics instance.
3149      * @throws IllegalArgumentException if provided time interval is negative.
3150      */
3151     public static BodyKinematics estimateKinematicsAndReturnNew(
3152             final double timeInterval, final ECEFFrame frame, final ECEFFrame oldFrame) {
3153         final var result = new BodyKinematics();
3154         estimateKinematics(timeInterval, frame, oldFrame, result);
3155         return result;
3156     }
3157 
3158     /**
3159      * Estimates body kinematics (specific force applied to a body and its angular rates).
3160      *
3161      * @param timeInterval time interval between epochs.
3162      * @param frame        body ECEF frame containing current position, velocity and
3163      *                     body-to-ECEF frame coordinate transformation.
3164      *                     Notice that current position contained in this frame is ignored.
3165      * @param oldFrame     body ECEF frame containing previous position, velocity and
3166      *                     body-to-ECEF frame coordinate transformation. The position
3167      *                     contained in this frame is the position where gravity is evaluated; to be consistent
3168      *                     with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be
3169      *                     the position at the start of the time interval.
3170      * @return a new body kinematics instance.
3171      * @throws IllegalArgumentException if provided time interval is negative.
3172      */
3173     public static BodyKinematics estimateKinematicsAndReturnNew(
3174             final Time timeInterval, final ECEFFrame frame, final ECEFFrame oldFrame) {
3175         final var result = new BodyKinematics();
3176         estimateKinematics(timeInterval, frame, oldFrame, result);
3177         return result;
3178     }
3179 
3180     /**
3181      * Estimates body kinematics (specific force applied to a body and its angular rates).
3182      *
3183      * @param timeInterval time interval between epochs expressed in seconds (s).
3184      * @param c            body-to-ECEF frame coordinate transformation matrix.
3185      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3186      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
3187      *                     resolved along ECEF-frame axes.
3188      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
3189      *                     resolved along ECEF-frame axes.
3190      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
3191      *                     resolved along ECEF-frame axes.
3192      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3193      *                     frame, resolved along ECEF-frame axes.
3194      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3195      *                     frame, resolved along ECEF-frame axes.
3196      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3197      *                     frame, resolved along ECEF-frame axes.
3198      * @param x            cartesian x coordinate of body position expressed in meters (m)
3199      *                     with respect ECEF frame, resolved along ECEF-frame axes.
3200      *                     This is the position where gravity is evaluated; to be consistent with
3201      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3202      *                     position at the start of the time interval.
3203      * @param y            cartesian y coordinate of body position expressed in meters (m)
3204      *                     with respect ECEF frame, resolved along ECEF-frame axes.
3205      *                     This is the position where gravity is evaluated; to be consistent with
3206      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3207      *                     position at the start of the time interval.
3208      * @param z            cartesian z coordinate of body position expressed in meters (m)
3209      *                     with respect ECEF frame, resolved along ECEF-frame axes.
3210      *                     This is the position where gravity is evaluated; to be consistent with
3211      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3212      *                     position at the start of the time interval.
3213      * @return a new body kinematics instance.
3214      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3215      *                                  are not ECEF frame valid.
3216      */
3217     public static BodyKinematics estimateKinematicsAndReturnNew(
3218             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
3219             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
3220             final double x, final double y, final double z) {
3221         final var result = new BodyKinematics();
3222         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z, result);
3223         return result;
3224     }
3225 
3226     /**
3227      * Estimates body kinematics (specific force applied to a body and its angular rates).
3228      *
3229      * @param timeInterval time interval between epochs.
3230      * @param c            body-to-ECEF frame coordinate transformation matrix.
3231      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3232      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
3233      *                     resolved along ECEF-frame axes.
3234      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
3235      *                     resolved along ECEF-frame axes.
3236      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
3237      *                     resolved along ECEF-frame axes.
3238      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3239      *                     frame, resolved along ECEF-frame axes.
3240      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3241      *                     frame, resolved along ECEF-frame axes.
3242      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3243      *                     frame, resolved along ECEF-frame axes.
3244      * @param x            cartesian x coordinate of body position expressed in meters (m)
3245      *                     with respect ECEF frame, resolved along ECEF-frame axes.
3246      *                     This is the position where gravity is evaluated; to be consistent with
3247      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3248      *                     position at the start of the time interval.
3249      * @param y            cartesian y coordinate of body position expressed in meters (m)
3250      *                     with respect ECEF frame, resolved along ECEF-frame axes.
3251      *                     This is the position where gravity is evaluated; to be consistent with
3252      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3253      *                     position at the start of the time interval.
3254      * @param z            cartesian z coordinate of body position expressed in meters (m)
3255      *                     with respect ECEF frame, resolved along ECEF-frame axes.
3256      *                     This is the position where gravity is evaluated; to be consistent with
3257      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3258      *                     position at the start of the time interval.
3259      * @return a new body kinematics instance.
3260      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3261      *                                  are not ECEF frame valid.
3262      */
3263     public static BodyKinematics estimateKinematicsAndReturnNew(
3264             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
3265             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
3266             final double x, final double y, final double z) {
3267         final var result = new BodyKinematics();
3268         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, x, y, z, result);
3269         return result;
3270     }
3271 
3272     /**
3273      * Estimates body kinematics (specific force applied to a body and its angular rates).
3274      *
3275      * @param timeInterval time interval between epochs expressed in seconds (s).
3276      * @param c            body-to-ECEF frame coordinate transformation matrix.
3277      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3278      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
3279      *                     resolved along ECEF-frame axes.
3280      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
3281      *                     resolved along ECEF-frame axes.
3282      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
3283      *                     resolved along ECEF-frame axes.
3284      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3285      *                     frame, resolved along ECEF-frame axes.
3286      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3287      *                     frame, resolved along ECEF-frame axes.
3288      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3289      *                     frame, resolved along ECEF-frame axes.
3290      * @param position     cartesian body position resolved along ECEF-frame axes.
3291      *                     This is the position where gravity is evaluated; to be consistent with
3292      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3293      *                     position at the start of the time interval.
3294      * @return a new body kinematics instance.
3295      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3296      *                                  are not ECEF frame valid.
3297      */
3298     public static BodyKinematics estimateKinematicsAndReturnNew(
3299             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
3300             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
3301             final ECEFPosition position) {
3302         final var result = new BodyKinematics();
3303         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
3304         return result;
3305     }
3306 
3307     /**
3308      * Estimates body kinematics (specific force applied to a body and its angular rates).
3309      *
3310      * @param timeInterval time interval between epochs.
3311      * @param c            body-to-ECEF frame coordinate transformation matrix.
3312      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3313      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
3314      *                     resolved along ECEF-frame axes.
3315      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
3316      *                     resolved along ECEF-frame axes.
3317      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
3318      *                     resolved along ECEF-frame axes.
3319      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3320      *                     frame, resolved along ECEF-frame axes.
3321      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3322      *                     frame, resolved along ECEF-frame axes.
3323      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3324      *                     frame, resolved along ECEF-frame axes.
3325      * @param position     cartesian body position resolved along ECEF-frame axes.
3326      *                     This is the position where gravity is evaluated; to be consistent with
3327      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3328      *                     position at the start of the time interval.
3329      * @return a new body kinematics instance.
3330      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3331      *                                  are not ECEF frame valid.
3332      */
3333     public static BodyKinematics estimateKinematicsAndReturnNew(
3334             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
3335             final Speed vx, final Speed vy, final Speed vz,
3336             final Speed oldVx, final Speed oldVy, final Speed oldVz, final ECEFPosition position) {
3337         final var result = new BodyKinematics();
3338         estimateKinematics(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz, position, result);
3339         return result;
3340     }
3341 
3342     /**
3343      * Estimates body kinematics (specific force applied to a body and its angular rates).
3344      *
3345      * @param timeInterval time interval between epochs expressed in seconds (s).
3346      * @param frame        body ECEF frame containing current position, velocity and
3347      *                     body-to-ECEF frame coordinate transformation.
3348      *                     The position contained in this frame is the position where gravity is evaluated; to
3349      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
3350      *                     callers) this must be the position at the start of the time interval. When the body
3351      *                     moves, use an overload receiving the previous frame or an explicit position instead.
3352      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3353      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3354      *                     frame, resolved along ECEF-frame axes.
3355      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3356      *                     frame, resolved along ECEF-frame axes.
3357      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3358      *                     frame, resolved along ECEF-frame axes.
3359      * @return a new body kinematics instance.
3360      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3361      *                                  are not ECEF frame valid.
3362      */
3363     public static BodyKinematics estimateKinematicsAndReturnNew(
3364             final double timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
3365             final Speed oldVx, final Speed oldVy, final Speed oldVz) {
3366         final var result = new BodyKinematics();
3367         estimateKinematics(timeInterval, frame, oldC, oldVx, oldVy, oldVz, result);
3368         return result;
3369     }
3370 
3371     /**
3372      * Estimates body kinematics (specific force applied to a body and its angular rates).
3373      *
3374      * @param timeInterval time interval between epochs.
3375      * @param frame        body ECEF frame containing current position, velocity and
3376      *                     body-to-ECEF frame coordinate transformation.
3377      *                     The position contained in this frame is the position where gravity is evaluated; to
3378      *                     be consistent with {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m}
3379      *                     callers) this must be the position at the start of the time interval. When the body
3380      *                     moves, use an overload receiving the previous frame or an explicit position instead.
3381      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3382      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3383      *                     frame, resolved along ECEF-frame axes.
3384      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3385      *                     frame, resolved along ECEF-frame axes.
3386      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3387      *                     frame, resolved along ECEF-frame axes.
3388      * @return a new body kinematics instance.
3389      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3390      *                                  are not ECEF frame valid.
3391      */
3392     public static BodyKinematics estimateKinematicsAndReturnNew(
3393             final Time timeInterval, final ECEFFrame frame, final CoordinateTransformation oldC,
3394             final Speed oldVx, final Speed oldVy, final Speed oldVz) {
3395         final var result = new BodyKinematics();
3396         estimateKinematics(timeInterval, frame, oldC, oldVx, oldVy, oldVz, result);
3397         return result;
3398     }
3399 
3400     /**
3401      * Estimates body kinematics (specific force applied to a body and its angular rates).
3402      *
3403      * @param timeInterval time interval between epochs expressed in seconds (s).
3404      * @param c            body-to-ECEF frame coordinate transformation matrix.
3405      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3406      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
3407      *                     resolved along ECEF-frame axes and expressed in meters per
3408      *                     second (m/s).
3409      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
3410      *                     resolved along ECEF-frame axes and expressed in meters per
3411      *                     second (m/s).
3412      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
3413      *                     resolved along ECEF-frame axes and expressed in meters per
3414      *                     second (m/s).
3415      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3416      *                     frame, resolved along ECEF-frame axes and expressed in meters
3417      *                     per second (m/s).
3418      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3419      *                     frame, resolved along ECEF-frame axes and expressed in meters
3420      *                     per second (m/s).
3421      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3422      *                     frame, resolved along ECEF-frame axes and expressed in meters
3423      *                     per second (m/s).
3424      * @param position     body position expressed in meters (m) with respect ECEF frame,
3425      *                     resolved along ECEF-frame axes.
3426      *                     This is the position where gravity is evaluated; to be consistent with
3427      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3428      *                     position at the start of the time interval.
3429      * @return a new body kinematics instance.
3430      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3431      *                                  are not ECEF frame valid.
3432      */
3433     public static BodyKinematics estimateKinematicsAndReturnNew(
3434             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
3435             final double vx, final double vy, final double vz,
3436             final double oldVx, final double oldVy, final double oldVz, final Point3D position) {
3437         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz,
3438                 position.getInhomX(), position.getInhomY(), position.getInhomZ());
3439     }
3440 
3441     /**
3442      * Estimates body kinematics (specific force applied to a body and its angular rates).
3443      *
3444      * @param timeInterval time interval between epochs.
3445      * @param c            body-to-ECEF frame coordinate transformation matrix.
3446      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3447      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
3448      *                     resolved along ECEF-frame axes and expressed in meters per
3449      *                     second (m/s).
3450      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
3451      *                     resolved along ECEF-frame axes and expressed in meters per
3452      *                     second (m/s).
3453      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
3454      *                     resolved along ECEF-frame axes and expressed in meters per
3455      *                     second (m/s).
3456      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3457      *                     frame, resolved along ECEF-frame axes and expressed in meters
3458      *                     per second (m/s).
3459      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3460      *                     frame, resolved along ECEF-frame axes and expressed in meters
3461      *                     per second (m/s).
3462      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3463      *                     frame, resolved along ECEF-frame axes and expressed in meters
3464      *                     per second (m/s).
3465      * @param position     body position expressed in meters (m) with respect ECEF frame,
3466      *                     resolved along ECEF-frame axes.
3467      *                     This is the position where gravity is evaluated; to be consistent with
3468      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3469      *                     position at the start of the time interval.
3470      * @return a new body kinematics instance.
3471      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3472      *                                  are not ECEF frame valid.
3473      */
3474     public static BodyKinematics estimateKinematicsAndReturnNew(
3475             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
3476             final double vx, final double vy, final double vz,
3477             final double oldVx, final double oldVy, final double oldVz, final Point3D position) {
3478         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz,
3479                 position.getInhomX(), position.getInhomY(), position.getInhomZ());
3480     }
3481 
3482     /**
3483      * Estimates body kinematics (specific force applied to a body and its angular rates).
3484      *
3485      * @param timeInterval time interval between epochs expressed in seconds (s).
3486      * @param c            body-to-ECEF frame coordinate transformation matrix.
3487      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3488      * @param velocity     velocity of body frame with respect ECEF frame.
3489      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
3490      * @param position     body position expressed in meters (m) with respect ECEF frame,
3491      *                     resolved along ECEF-frame axes.
3492      *                     This is the position where gravity is evaluated; to be consistent with
3493      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3494      *                     position at the start of the time interval.
3495      * @return a new body kinematics instance.
3496      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3497      *                                  are not ECEF frame valid.
3498      */
3499     public static BodyKinematics estimateKinematicsAndReturnNew(
3500             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
3501             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final Point3D position) {
3502         final var result = new BodyKinematics();
3503         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, position, result);
3504         return result;
3505     }
3506 
3507     /**
3508      * Estimates body kinematics (specific force applied to a body and its angular rates).
3509      *
3510      * @param timeInterval time interval between epochs.
3511      * @param c            body-to-ECEF frame coordinate transformation matrix.
3512      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3513      * @param velocity     velocity of body frame with respect ECEF frame.
3514      * @param oldVelocity  previous velocity of body frame with respect ECEF frame.
3515      * @param position     body position expressed in meters (m) with respect ECEF frame,
3516      *                     resolved along ECEF-frame axes.
3517      *                     This is the position where gravity is evaluated; to be consistent with
3518      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3519      *                     position at the start of the time interval.
3520      * @return a new body kinematics instance.
3521      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3522      *                                  are not ECEF frame valid.
3523      */
3524     public static BodyKinematics estimateKinematicsAndReturnNew(
3525             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
3526             final ECEFVelocity velocity, final ECEFVelocity oldVelocity, final Point3D position) {
3527         final var result = new BodyKinematics();
3528         estimateKinematics(timeInterval, c, oldC, velocity, oldVelocity, position, result);
3529         return result;
3530     }
3531 
3532     /**
3533      * Estimates body kinematics (specific force applied to a body and its angular rates).
3534      *
3535      * @param timeInterval time interval between epochs expressed in seconds (s).
3536      * @param c            boy-to-ECEF frame coordinate transformation matrix.
3537      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3538      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
3539      *                     resolved along ECEF-frame axes.
3540      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
3541      *                     resolved along ECEF-frame axes.
3542      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
3543      *                     resolved along ECEF-frame axes.
3544      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3545      *                     frame, resolved along ECEF-frame axes.
3546      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3547      *                     frame, resolved along ECEF-frame axes.
3548      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3549      *                     frame, resolved along ECEF-frame axes.
3550      * @param position     body position expressed in meters (m) with respect ECEF frame,
3551      *                     resolved along ECEF-frame axes.
3552      *                     This is the position where gravity is evaluated; to be consistent with
3553      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3554      *                     position at the start of the time interval.
3555      * @return a new body kinematics instance.
3556      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3557      *                                  are not ECEF frame valid.
3558      */
3559     public static BodyKinematics estimateKinematicsAndReturnNew(
3560             final double timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
3561             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
3562             final Point3D position) {
3563         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz,
3564                 position.getInhomX(), position.getInhomY(), position.getInhomZ());
3565     }
3566 
3567     /**
3568      * Estimates body kinematics (specific force applied to a body and its angular rates).
3569      *
3570      * @param timeInterval time interval between epochs.
3571      * @param c            boy-to-ECEF frame coordinate transformation matrix.
3572      * @param oldC         previous body-to-ECEF-frame coordinate transformation matrix.
3573      * @param vx           velocity of body frame x coordinate with respect ECEF frame,
3574      *                     resolved along ECEF-frame axes.
3575      * @param vy           velocity of body frame y coordinate with respect ECEF frame,
3576      *                     resolved along ECEF-frame axes.
3577      * @param vz           velocity of body frame z coordinate with respect ECEF frame,
3578      *                     resolved along ECEF-frame axes.
3579      * @param oldVx        previous velocity of body frame x coordinate with respect ECEF
3580      *                     frame, resolved along ECEF-frame axes.
3581      * @param oldVy        previous velocity of body frame y coordinate with respect ECEF
3582      *                     frame, resolved along ECEF-frame axes.
3583      * @param oldVz        previous velocity of body frame z coordinate with respect ECEF
3584      *                     frame, resolved along ECEF-frame axes.
3585      * @param position     body position expressed in meters (m) with respect ECEF frame,
3586      *                     resolved along ECEF-frame axes.
3587      *                     This is the position where gravity is evaluated; to be consistent with
3588      *                     {@code ECEFInertialNavigator} (and {@code Kinematics_ECEF.m} callers) this must be the
3589      *                     position at the start of the time interval.
3590      * @return a new body kinematics instance.
3591      * @throws IllegalArgumentException if provided time interval is negative or coordinated transformation matrices
3592      *                                  are not ECEF frame valid.
3593      */
3594     public static BodyKinematics estimateKinematicsAndReturnNew(
3595             final Time timeInterval, final CoordinateTransformation c, final CoordinateTransformation oldC,
3596             final Speed vx, final Speed vy, final Speed vz, final Speed oldVx, final Speed oldVy, final Speed oldVz,
3597             final Point3D position) {
3598         return estimateKinematicsAndReturnNew(timeInterval, c, oldC, vx, vy, vz, oldVx, oldVy, oldVz,
3599                 position.getInhomX(), position.getInhomY(), position.getInhomZ());
3600     }
3601 }