What does it mean if something ''on the beam"?

What does it mean in this particular sentence?

"Weather and seas were directly on the beam."
4 answers 4