Fix #2099
Might as well use MathUtils.isEqual (see #2099)