JetBrains / JetBrains/resharper-unity

Swap out TOLERANCE with Mathf.epsilon

Open
#68 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

When rider detects floating point imprecision in my code it wants to fix it by Adding Math.Abs and checking if it is less than TOLERANCE. I'd like TOLERANCE to be swapped out with Mathf.epsilon in the UnityEngine.dll
![image](https://cloud.githubusercontent.com/assets/568589/20393581/ac2f9978-acdc-11e6-8a3b-be44a5129c9f.png)
![image](https://cloud.githubusercontent.com/assets/568589/20393585/b619a3c0-acdc-11e6-8213-dfca7dd6d89b.png)
![image](https://cloud.githubusercontent.com/assets/568589/20393587/b822f234-acdc-11e6-9d8b-631cc204c365.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.