I'm trying to create a vector (like in physics) class in Java.I want to support vector addition, dot product, scalar multiplication, etc.So, my question is, is it possible to do this with generics? Generics can only take objects as parameters but I'd like to use primitives (double or float).
Creating a Vector (physics) Class in Java
java;generics