class CCL::Math::Region

Overview

#include <mathregion.h>

class Region
{
public:
    // structs

    struct Segment;

    // construction

    Region ();
    Region (const Region& r);

    // methods

    bool isEmpty () const;
    bool isComplex () const;
    bool isIncluded (const Segment& segment) const;
    Region& include (const Segment& segment);
    Region& exclude (const Segment& segment);
    Region& makeEmpty ();
    Region& makeInfinite ();
    Region& invert ();

    Region& invertHorizontally (
        double minX = -NumericLimits::kLargeDouble,
        double maxX = NumericLimits::kLargeDouble
    );
};

Detailed Documentation

Methods

Region& invertHorizontally (
    double minX = -NumericLimits::kLargeDouble,
    double maxX = NumericLimits::kLargeDouble
)

only invert in horizontal “bands”, keep the vertical range of segments