There is a C code which I have to change it to Java. In this code there are a lot of vectors like Vector2 and Vector3. I know I can define arrays or lists for them in Java language But I want to ask is there any predefined structure or class in Java which work as the same as vector2 or vector3?
For example Point in java is like a vector2 which 2 double variable but you can't store any other data type in Point.