You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
369 B
21 lines
369 B
//
|
|
// Created by 14727 on 2022/12/7.
|
|
//
|
|
|
|
#ifndef C2C4_RANGE_H
|
|
#define C2C4_RANGE_H
|
|
#include "real.h"
|
|
|
|
class Range {
|
|
public:
|
|
real a;
|
|
real b;
|
|
Range(real _a, real _b);
|
|
Range() = default;
|
|
Range operator+(const Range &r2) const;
|
|
Range operator-(const Range &r2) const;
|
|
Range operator*(const Range &r2) const;
|
|
bool hasZero() const;
|
|
};
|
|
|
|
#endif // C2C4_RANGE_H
|
|
|