Comestic change + change constness of input arguments + correct a bug of member function setScale calls itself