mirror of
https://github.com/zoriya/Quadtree.git
synced 2026-06-05 03:19:34 +00:00
Now using floats instead of ints
This commit is contained in:
+6
-6
@@ -15,8 +15,8 @@ typedef struct quadtree quadtree;
|
|||||||
|
|
||||||
typedef struct qt_intrect
|
typedef struct qt_intrect
|
||||||
{
|
{
|
||||||
int x;
|
float x;
|
||||||
int y;
|
float y;
|
||||||
int h;
|
int h;
|
||||||
int w;
|
int w;
|
||||||
} qt_intrect;
|
} qt_intrect;
|
||||||
@@ -29,10 +29,10 @@ typedef struct qt_object
|
|||||||
|
|
||||||
typedef struct qt_collision
|
typedef struct qt_collision
|
||||||
{
|
{
|
||||||
int distance_left;
|
float distance_left;
|
||||||
int distance_right;
|
float distance_right;
|
||||||
int distance_top;
|
float distance_top;
|
||||||
int distance_down;
|
float distance_down;
|
||||||
} qt_collision;
|
} qt_collision;
|
||||||
|
|
||||||
struct quadtree
|
struct quadtree
|
||||||
|
|||||||
Reference in New Issue
Block a user