2020-11-08 16:37:59 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
2020-11-15 15:39:00 +01:00
|
|
|
struct __declspec(align(4)) rectangle_type
|
2020-11-08 16:37:59 +01:00
|
|
|
{
|
|
|
|
int XPosition;
|
|
|
|
int YPosition;
|
|
|
|
int Width;
|
|
|
|
int Height;
|
|
|
|
};
|
|
|
|
|
|
|
|
class maths
|
|
|
|
{
|
|
|
|
public:
|
2020-11-15 15:39:00 +01:00
|
|
|
static void enclosing_box(rectangle_type* rect1, rectangle_type* rect2, rectangle_type* dstRect);
|
|
|
|
static int rectangle_clip(rectangle_type* rect1, rectangle_type* rect2, rectangle_type* dstRect);
|
|
|
|
static int overlapping_box(rectangle_type* rect1, rectangle_type* rect2, rectangle_type* dstRect);
|
2020-11-08 16:37:59 +01:00
|
|
|
};
|