I've got a constructor that sets some floats (x,y,z) and then I have a function called setXYZ. Now the constructor and the function do exactly the same thing.
What's the best thing to do in this situation? Should I put the code in the function then call this from the constructor? Or is there a more efficient way?