command can contain x1 and y1 if it is curve