Added a new transformation calculation method to the drawnobject