mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 22:21:18 +02:00
- fixed on windows platform
This commit is contained in:
@@ -16,6 +16,8 @@
|
|||||||
#include "vec.h"
|
#include "vec.h"
|
||||||
#include "leak_dumper.h"
|
#include "leak_dumper.h"
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
namespace Shared{ namespace Graphics{
|
namespace Shared{ namespace Graphics{
|
||||||
|
|
||||||
const float pi= 3.1415926f;
|
const float pi= 3.1415926f;
|
||||||
@@ -184,10 +186,10 @@ public:
|
|||||||
|
|
||||||
Rect2<T> computeBoundingRect() const{
|
Rect2<T> computeBoundingRect() const{
|
||||||
return Rect2i(
|
return Rect2i(
|
||||||
std::min(p[0].x, p[1].x),
|
min(p[0].x, p[1].x),
|
||||||
std::min(p[0].y, p[2].y),
|
min(p[0].y, p[2].y),
|
||||||
std::max(p[2].x, p[3].x),
|
max(p[2].x, p[3].x),
|
||||||
std::max(p[1].y, p[3].y));
|
max(p[1].y, p[3].y));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isInside(const Vec2<T> &pt) const{
|
bool isInside(const Vec2<T> &pt) const{
|
||||||
|
Reference in New Issue
Block a user