I would like to use different variables to access the same data.
i.e. I have an array:
float[] vector = new float[3];
I would like each value in the array to also have its individual label i.e.:
vector[0] == pitch;
vector[1] == yaw;
vector[2] == roll;
I would like to use vector[] & pitch/yaw/roll interchangeably. When I pass all three values between two functions I want to refer to the array, however when I access them individually I would like to refer to them as pitch yaw and roll.
Is this possible in Java?