See RaylibCore.CheckCollisionRecs.
bool CheckCollisionRecs(RectangleC rec1, RectangleC rec2) => _module.CheckCollisionRecs(rec1, rec2);