c = Math.abs(c) <= epsilon ? 0 : c;
d = Math.abs(d) <= epsilon ? 0 : d;
if (a!=0 || b!=0 || c!=0) return new Plane(a, b, c, d);
- if (d==0) return new AffineConstraint.All();
- return new AffineConstraint.Nothing();
+ if (d==0) return AffineConstraint.ALL;
+ return AffineConstraint.NONE;
}
}