diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-11-01 23:32:22 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-11-01 23:32:22 +0800 |
commit | f68cc9034a576b6f91cf0db0344ece971944c973 (patch) | |
tree | 123744e85445f51d058b74d9c9fb2174f6abefd7 /archive/hge/CxImage/ximath.h | |
parent | 1981e9bc81e92f479c725e6ac60ff3bd419cefd0 (diff) | |
download | bullet-lab-remix-f68cc9034a576b6f91cf0db0344ece971944c973.tar.xz |
Move hge to an archive.
Finish the main part of smPath.
This is a C++ project, add C++ tags to all source code that
could be identified as C source files.
Diffstat (limited to 'archive/hge/CxImage/ximath.h')
-rw-r--r-- | archive/hge/CxImage/ximath.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/archive/hge/CxImage/ximath.h b/archive/hge/CxImage/ximath.h deleted file mode 100644 index 014c14b..0000000 --- a/archive/hge/CxImage/ximath.h +++ /dev/null @@ -1,39 +0,0 @@ -#if !defined(__ximath_h)
-#define __ximath_h
-
-#include "ximadef.h"
-
-//***bd*** simple floating point point
-class DLL_EXP CxPoint2
-{
-public:
- CxPoint2();
- CxPoint2(float const x_, float const y_);
- CxPoint2(CxPoint2 const &p);
-
- float Distance(CxPoint2 const p2);
- float Distance(float const x_, float const y_);
-
- float x,y;
-};
-
-//and simple rectangle
-class DLL_EXP CxRect2
-{
-public:
- CxRect2();
- CxRect2(float const x1_, float const y1_, float const x2_, float const y2_);
- CxRect2(CxPoint2 const &bl, CxPoint2 const &tr);
- CxRect2(CxRect2 const &p);
-
- float Surface() const;
- CxRect2 CrossSection(CxRect2 const &r2) const;
- CxPoint2 Center() const;
- float Width() const;
- float Height() const;
-
- CxPoint2 botLeft;
- CxPoint2 topRight;
-};
-
-#endif
|