Unity-Technologies / Unity.Mathematics

The C# math library used in Unity providing vector types and math functions with a shader like syntax
Other
1.38k stars 156 forks source link

Add math.sign(x) for integers #169

Closed msfredb7 closed 3 years ago

msfredb7 commented 4 years ago

The current math.sign methods only support doubles and floats. Is there a reason why ints were not included? System.Math.Sign does support it.

unpacklo commented 4 years ago

It seems like an oversight. I'll be adding this to our internal issue tracker, thanks for letting us know!