A shape is called convex if, for any two points in the shape, the straight line segment joining them lies entirely within the shape. In this diagram, the red line segments lie entirely within the shape, but the right-hand shape has a blue line segment which is not entirely within it, so it is not convex.

Compulsory alt text

A polygon is convex if all of its interior angles are less than \(180^\circ\).