Closed jenetics closed 3 years ago
The current implementation for calculating the distance between two points contains code, where values are checked against zero.
// Eq. 17 Careful! sin2sigma might be almost 0! final double sinalpha = sin2sigma == 0.0 ? 0.0 : cosU1cosU2*sinlambda/sinsigma;
This kind of comparison isn't numerically stable. Replace this code with an epsilon check.
Merged into r2.1.0 branch.
The current implementation for calculating the distance between two points contains code, where values are checked against zero.
This kind of comparison isn't numerically stable. Replace this code with an epsilon check.