Slick Forums
http://slick.ninjacave.com/forum/

[IDEA] Immutable Vector2f
http://slick.ninjacave.com/forum/viewtopic.php?f=27&t=6708
Page 1 of 1

Author:  Halfdan [ Sat Sep 14, 2013 4:35 pm ]
Post subject:  [IDEA] Immutable Vector2f

I think that Vector2f could be immutable which would save us a lot of debugging.
I don't see why it's mutable.
And it should not have any public fields (like Vector2f.x or Vector2f.y), this is very bad.

Greetings,
Piotr.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/