A subset of euclidean space is convex if given any two points in the subset, the subset contains the whole line segment that joins them.

Non convex set