point.translate(tx [, ty])
Translate the point by tx
on the x-axis and by ty
on the y-axis.
If only tx
is specified and is a number, ty
is considered to be zero. If only tx
is specified and is an object, it is considered to be another point or an object in the form { x: [number], y: [number] }