Moving a line programatically

Hi All,

I’ve drawn a line using SKShapeNode by setting the path property, how can I change the position of the end points of the line programatically, Creating a new path wouldn’t be desirable,

Thanks,

You could probably achieve this by rotating and scaling the node.