I have just began with 3D in java, using LWJGL. I have so far manage to create a camera, and some objects. But after looking around on the internet I noticed that some people uses codes like this
private Vector3f location = new Vector3f(0, 0, 0);
private Vector3f rotation = new Vector3f(0, 0, 0);
and
private float x, y, z;
private float rx, ry, tz;
Is it just a preference thing? whats the advantages, and disadvantages? I personally like the Vector3f method, since then I can use a method that returns the vector and use the variables x y and z instead of using get and set methods. It also allows me to use .set for things like projectiles, and to put the camera where I want it to be.