RectB



This union represents four boolean values.

You can find more information in comments below.

union RectB
{
    struct
    {
        bool Left;
        bool Top;
        bool Right;
        bool Bottom;
    };
    bool Data[4];

    bool operator[](const int index) const; // Return element
    bool &operator[](const int index); // Return element
};

Following operators are also available.

bool operator==(const RectB &a, const RectB &b); // Check if rects are equal
bool operator!=(const RectB &a, const RectB &b); // Check if rects are not equal
std::wostream &operator<<(std::wostream &stream, const RectB &a); // Output as source code
Namespace: nitisa
Include: Nitisa/Core/Math/RectB.h (For union declaration)
Nitisa/Core/Math/RectBUtils.h (For standalone operators)