roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

Refactoring request: Use MathF where possible

Open symbiogenesis opened this issue 1 year ago • 0 comments
trafficstars

If you use any of the Math functions like Math.Min() or Math.Cos() or Math.Abs() etc, and you are using floats for all the parameters, then you should probably be using MathF for better performance.

Especially if you are casting to float immediately afterwards.

Note: This is only available if using .NET 6 or later

symbiogenesis avatar Jan 18 '24 09:01 symbiogenesis