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.

Options are:
[i] different meanings.
[ii] the same meaning.
[ii]