Improve exception handling in IODGibbs
Currently, in the estimate()
method of IODGibbs
class, they are two if
conditions are implemented without any action inside. It seems that these two conditions are implemented to thrown exceptions.
The two exceptions have to be added.
Current code:
// Checks measures are not at the same date
if (date1.equals(date2) || date1.equals(date3) || date2.equals(date3)) {
//throw new OrekitException("The measures are not different!");
}
// Checks measures are in the same plane
final double num = r1.normalize().dotProduct(r2.normalize().crossProduct(r3.normalize()));
final double alpha = FastMath.PI / 2.0 - FastMath.acos(num);
if (FastMath.abs(alpha) > COPLANAR_THRESHOLD) {
// throw something
//throw new OrekitException("Non coplanar points!");
}