translate the shape with x in horizontally and y vertically
x
y
Shape translate({double x = 0, double y = 0});