30 MG_DLL_DECLR
friend bool operator== (
double,
const MGEReal&);
31 MG_DLL_DECLR
friend bool operator!= (
double,
const MGEReal&);
32 MG_DLL_DECLR
friend bool operator> (
double,
const MGEReal&);
33 MG_DLL_DECLR
friend bool operator< (
double,
const MGEReal&);
34 MG_DLL_DECLR
friend bool operator>= (
double,
const MGEReal&);
35 MG_DLL_DECLR
friend bool operator<= (
double,
const MGEReal&);
54 MGEReal operator+ (
double)
const;
63 MGEReal operator- (
double)
const;
75 MGEReal operator/ (
double)
const;
81 bool operator== (
double t)
const;
82 bool operator== (
const MGEReal&)
const;
84 bool operator!= (
double t)
const{
return !((*this)==t);};
85 bool operator!= (
const MGEReal& er2)
const{
return !((*this)==er2);};
87 bool operator> (
double t)
const;
88 bool operator> (
const MGEReal&)
const;
90 bool operator< (
double t)
const;
91 bool operator< (
const MGEReal& er2)
const{
return er2>(*this);};
93 bool operator>= (
const MGEReal& er2)
const;
94 bool operator<= (
const MGEReal& er2)
const{
return er2>=(*this);};
95 bool operator>= (
double t)
const;
96 bool operator<= (
double t)
const;
101 int infinite_coef()
const;
103 bool equal_base(
double t,
double base)
const;
104 bool equal_base(
const MGEReal& t,
double base)
const;
105 bool finite()
const{
return infinite_coef()==0;};
114 double value()
const {
return m_value;};
118 int dump_size()
const;
MGINFINITE_TYPE
Infinite type.
Definition: MGCL.h:110
bool plus_infinite() const
Definition: EReal.h:109
void set_plus_infinite()
Definition: EReal.h:111
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
double value() const
Definition: EReal.h:114
MG_DLL_DECLR MGVector & operator*=(MGVector &v, const MGMatrix &m)
bool infinite() const
Definition: EReal.h:106
bool finite() const
Definition: EReal.h:105
Interval of 1 dimension, i.e. MGInterval is a real line.
Definition: Interval.h:22
MG_DLL_DECLR MGVector operator*(const MGVector &v, const MGMatrix &m)
void set_minus_infinite()
Definition: EReal.h:112
bool minus_infinite() const
Definition: EReal.h:108
MGEReal is extended real number to define infinity.
Definition: EReal.h:22
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
void set_real(double val)
Definition: EReal.h:110
void invert()
Definition: EReal.h:107
void set_zero()
Definition: EReal.h:113
const double mgInfiniteVal
Definition: MGCL.h:107
MGEReal(double val=0.0)
Default Constructor.
Definition: EReal.h:43