Meaning of "Shape a course"

To ascertain the proper course to be steered to make the desired point or port. Shark’s mouth. The opening in an awning around the mast.

Shape a course Meaning of