Is rest used to mean the same thing in the next two sentences (see options)?

The ocean was finally at rest.

A body will continue in a state of rest until acted upon.

OPT:
(I) different meanings
(II) the same meaning
(II)