A numerical method for manoeuvring simulation in regular waves