PointB



This union represents pair of boolean values or a boolean point.

You can find more information in comments below.

union PointB
{
    struct
    {
        bool X;
        bool Y;
    };
    bool Data[2];

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

Following operators are also available.

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