Last change
on this file since 176 was 95, checked in by Rick van der Zwet, 15 years ago |
Bad boy, improper move of directory
|
File size:
802 bytes
|
Rev | Line | |
---|
[95] | 1 | #if !defined(__ximath_h)
|
---|
| 2 | #define __ximath_h
|
---|
| 3 |
|
---|
| 4 | #include "ximadef.h"
|
---|
| 5 |
|
---|
| 6 | //***bd*** simple floating point point
|
---|
| 7 | class DLL_EXP CxPoint2
|
---|
| 8 | {
|
---|
| 9 | public:
|
---|
| 10 | CxPoint2();
|
---|
| 11 | CxPoint2(float const x_, float const y_);
|
---|
| 12 | CxPoint2(CxPoint2 const &p);
|
---|
| 13 |
|
---|
| 14 | float Distance(CxPoint2 const p2);
|
---|
| 15 | float Distance(float const x_, float const y_);
|
---|
| 16 |
|
---|
| 17 | float x,y;
|
---|
| 18 | };
|
---|
| 19 |
|
---|
| 20 | //and simple rectangle
|
---|
| 21 | class DLL_EXP CxRect2
|
---|
| 22 | {
|
---|
| 23 | public:
|
---|
| 24 | CxRect2();
|
---|
| 25 | CxRect2(float const x1_, float const y1_, float const x2_, float const y2_);
|
---|
| 26 | CxRect2(CxPoint2 const &bl, CxPoint2 const &tr);
|
---|
| 27 | CxRect2(CxRect2 const &p);
|
---|
| 28 |
|
---|
| 29 | float Surface() const;
|
---|
| 30 | CxRect2 CrossSection(CxRect2 const &r2) const;
|
---|
| 31 | CxPoint2 Center() const;
|
---|
| 32 | float Width() const;
|
---|
| 33 | float Height() const;
|
---|
| 34 |
|
---|
| 35 | CxPoint2 botLeft;
|
---|
| 36 | CxPoint2 topRight;
|
---|
| 37 | };
|
---|
| 38 |
|
---|
| 39 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.