This is a minimal bounding box example rewritten using C++ from LongLiveTheSquare, contains example XCode Objective-C project Blue is points drawing area, gray is hull, green is bounding box