Page 1 of 1

rect<T>::delta and rect<T>::makeDelta

Posted: Fri Nov 21, 2014 8:16 pm
by chronologicaldot
I don't like the idea of breaking backwards compatibility, and maybe this has been brought up before, but it seems the naming is wrong for the content of the functions. They should be switched. The comments describing them are accurate for the name but not for the code. (And notably, the rect<T>& and rect<T> returns would need to be swapped.)
But it makes me wonder - is there somewhere in the engine where these are being used? I haven't checked yet - maybe someone else has.

Walking around the problem is easy enough - you simply do it manually. Nevertheless, it renders the functions ambiguous and therefore not as useful, no pun intended.

Re: rect<T>::delta and rect<T>::makeDelta

Posted: Mon Nov 24, 2014 12:23 pm
by CuteAlien
I find no delta functions in rect.h. Could this be some functions you added yourself to the header?

Re: rect<T>::delta and rect<T>::makeDelta

Posted: Tue Dec 16, 2014 6:35 am
by chronologicaldot
Could be. lol. I don't remember anything I've modded in the file since I haven't touched in it a long time.