A geometric approach to minimum-time control based on convexity