MegaSteve/Math.ixx

19 lines
251 B
C++

module;
#include <d2d1.h>
export module Math;
export
{
struct Vector2 : D2D1_POINT_2F
{
};
struct Rect : D2D1_RECT_F
{
Vector2 size() const&
{
return { right - left, bottom - top };
}
};
}