1 #if !defined(__ximath_h)
\r
6 //***bd*** simple floating point point
\r
7 class DLL_EXP CxPoint2
\r
11 CxPoint2(float const x_, float const y_);
\r
12 CxPoint2(CxPoint2 const &p);
\r
14 float Distance(CxPoint2 const p2);
\r
15 float Distance(float const x_, float const y_);
\r
20 //and simple rectangle
\r
21 class DLL_EXP CxRect2
\r
25 CxRect2(float const x1_, float const y1_, float const x2_, float const y2_);
\r
26 CxRect2(CxPoint2 const &bl, CxPoint2 const &tr);
\r
27 CxRect2(CxRect2 const &p);
\r
29 float Surface() const;
\r
30 CxRect2 CrossSection(CxRect2 const &r2) const;
\r
31 CxPoint2 Center() const;
\r
32 float Width() const;
\r
33 float Height() const;
\r