removed not used objects pontx,ponty and added new affine transform
object-self rotation 
swapped where using pointx and ponty with pont1().x and point1().y