-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add types for Physics to the common lib.
- Loading branch information
aTxr
committed
Jan 12, 2022
1 parent
4e11831
commit 9fbee01
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#ifndef LIB_H | ||
#define LIB_H | ||
|
||
typedef struct Vel | ||
{ | ||
int dx; | ||
int dy; | ||
} Vel ; | ||
#include <tuple> | ||
|
||
typedef std::pair<unsigned int, unsigned int> Vec; | ||
typedef std::pair<int, int> Vel; | ||
|
||
typedef struct phxParam | ||
{ | ||
Vec position; | ||
Vel velocity; | ||
} phxParam; | ||
|
||
enum Force {weight}; | ||
|
||
#endif | ||
#endif |