I've been searching for a whole day. I've tried Simplex3D Scala library. But it's poorly documented and I don't even manage to get a vector normalized after downloading an older release because the current one doesn't run.
javax.vecmath is not immutable so it not nice to use in Scala.
commons-math is more into the scientific math direction with no convenience for 2D (or 3D) use.
I couldn't find one when I needed one. So I built one, and I've always been intending to release it. I'm too busy to do anything with it now, but I could probably make it available next week if a better answer is not forthcoming.
I've just done some more research. Slick2D seems to contain a Vector2f class that has immutable methods. Though that's not very much and can be done by hand in maybe an hour.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With