FosterFramework / Foster

A small C# game framework
MIT License
450 stars 37 forks source link

Two little things. #30

Closed kuujoo closed 1 year ago

kuujoo commented 1 year ago

Add FloorToPoint2 extension method Add CornflowerBlue color just for fun.

Question: Should we prefer using 'Calc' class over making direct calls to Math or MathF ? In the 'VectorExt.cs' 'MathF.Round' is used, even though comment on method 'Calc.Round' says "Always round using this!"

MrBrixican commented 1 year ago

CornflowerBlue is a good addition, haha.

NoelFB commented 1 year ago

Yeah I'm up for adding more built in colors in general. Also I have no idea why Calc.Round/Floor exist to be honest.... I've had a version of this Calc class around for years, before MathF even existed, so it's probably worth going through and removing unnecessary stuff like that.