I'm trying to make myself a little collection of classes that are custom to my needs. I started making a couple like Vector and Point. The problem is I want to be able to use any data type that I want, double, float, int etc. but I want to make one class that can do any of them.
Haha, not in java
Here is a scala example of how to create a generic Vec2: http://matheusdev.tumblr.com/post/51071594017/scala-and-extending-numeric-t
And don't worry, It's the same performance as if you'd write a Vec2 for each numeric type (that is: byte, char, short, int, float and double, or only float and double if you decide to use Fractional).
Yeah, it's not trivial, but it's possible in scala
In java: No... not really. Try to find a code precompiler for java maybe, but in the end that's what scala is.