I read about math in games and wonder what is the best way to represent Vector's location in Java.
I know that there is a Vector class, but I do not think that this is what I need.
There is also a Matrix class that looks as if it could be what I want (maybe it could be a 1-dimensional matrix).
In particular, if I were to create a location vector, for example:
v (x, y, z), where x, y and z are the coordinates in three-dimensional space, which would be the best way to represent this in Java. It would be nice if I could add, subtract and find the point product of vectors.
ideas?
source
share