Rectf myRect(10, 20, 50, 30);
if (myRect.contains(25, 25)) { // point is inside the rectangle }
Rectf top, bottom; myRect.split(Rectf::SplitType::Horizontal, 0.5f, top, bottom);This splits the rectangle horizontally at the middle and returns two separate rectangles "top" and "bottom". Rectf is part of the Cinder C++ library which is an open-source C++ library for creative coding. It provides a collection of tools and utilities for developing interactive, multimedia applications and is commonly used for building graphic applications, sound and music software, and data visualization tools.