Ship geometry and hydrostatics