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
379 B
21 lines
379 B
//
|
|
// Created by 14727 on 2022/12/7.
|
|
//
|
|
|
|
#ifndef C2C4_RANGE_H
|
|
#define C2C4_RANGE_H
|
|
|
|
|
|
class Range {
|
|
public:
|
|
float a;
|
|
float b;
|
|
Range(float _a, float _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
|
|
|