Skip to content

Commit 33a1c3c

Browse files
committed
digits on either side of decimal
1 parent b17ee46 commit 33a1c3c

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎src/main/java/com/esri/core/geometry/ECoordinate.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void div(ECoordinate divis) {
189189
if (divis.m_eps > 0.01 * fabsdivis) {// more accurate error calculation
190190
// for very inaccurate divisor
191191
double rr = divis.m_eps / fabsdivis;
192-
e *= (1. + (1. + rr) * rr);
192+
e *= (1.0 + (1.0 + rr) * rr);
193193
}
194194
m_value = r;
195195
m_eps = e + epsCoordinate() * Math.abs(r);
@@ -226,7 +226,7 @@ void sqrt() {
226226

227227
if (m_value >= 0) { // assume non-negative input
228228
r = Math.sqrt(m_value);
229-
if (m_value > 10. * m_eps) {
229+
if (m_value > 10.0 * m_eps) {
230230
dr = 0.5 * m_eps / r;
231231
} else {
232232
dr = (m_value > m_eps) ? r - Math.sqrt(m_value - m_eps) : Math

‎src/main/java/com/esri/core/geometry/GeoDist.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static private double q90(double a, double e2) {
8888
double n2 = n * n;
8989

9090
return a / (1.0 + n)
91-
* (1.0 + n2 * (1. / 4. + n2 * (1. / 64. + n2 * (1. / 256.))))
91+
* (1.0 + n2 * (1.0 / 4.0 + n2 * (1.0 / 64.0 + n2 * (1.0 / 256.0))))
9292
* PE_PI2;
9393
}
9494

‎src/main/java/com/esri/core/geometry/Transformation2D.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,9 @@ public boolean isIdentity() {
456456
* The tolerance value.
457457
*/
458458
public boolean isIdentity(double tol) {
459-
Point2D pt = Point2D.construct(0., 1.);
459+
Point2D pt = Point2D.construct(0.0, 1.0);
460460
transform(pt, pt);
461-
pt.sub(Point2D.construct(0., 1.));
461+
pt.sub(Point2D.construct(0.0, 1.0));
462462
if (pt.sqrLength() > tol * tol)
463463
return false;
464464

@@ -467,9 +467,9 @@ public boolean isIdentity(double tol) {
467467
if (pt.sqrLength() > tol * tol)
468468
return false;
469469

470-
pt.setCoords(1., 0.);
470+
pt.setCoords(1.0, 0.0);
471471
transform(pt, pt);
472-
pt.sub(Point2D.construct(1., 0));
472+
pt.sub(Point2D.construct(1.0, 0));
473473
return pt.sqrLength() <= tol * tol;
474474
}
475475

@@ -510,12 +510,12 @@ public boolean isShift() {
510510
* The tolerance value.
511511
*/
512512
public boolean isShift(double tol) {
513-
Point2D pt = transformWithoutShift(Point2D.construct(0., 1.));
513+
Point2D pt = transformWithoutShift(Point2D.construct(0.0, 1.0));
514514
pt.y -= 1.0;
515515
if (pt.sqrLength() > tol * tol)
516516
return false;
517517

518-
pt = transformWithoutShift(Point2D.construct(1., 0.));
518+
pt = transformWithoutShift(Point2D.construct(1.0, 0.0));
519519
pt.x -= 1.0;
520520
return pt.sqrLength() <= tol * tol;
521521
}

0 commit comments

Comments
 (0)