diff options
author | pacien | 2017-12-02 01:14:50 +0100 |
---|---|---|
committer | pacien | 2017-12-02 01:14:50 +0100 |
commit | fbe226b2a8212d80c49e4ac54a05ecd60b37d722 (patch) | |
tree | 8859ca7961b5fb3d0a8d36c1f932d4c3c6efd460 | |
parent | 2c8edf0e358c12619ec3f9d1e98c0035246218f9 (diff) | |
download | morpher-fbe226b2a8212d80c49e4ac54a05ecd60b37d722.tar.gz |
Redefine time constants
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-rw-r--r-- | include/common/time.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/common/time.h b/include/common/time.h index 060b7be..54a7bb2 100644 --- a/include/common/time.h +++ b/include/common/time.h | |||
@@ -6,18 +6,18 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | /** | 8 | /** |
9 | * Type: TimeVector | 9 | * Constants: Time vectors |
10 | * An abstract time vector. | 10 | * |
11 | * TIME_ORIGIN - the origin of times | ||
12 | * TIME_UNIT - a unit time vector | ||
11 | */ | 13 | */ |
12 | typedef float TimeVector; | 14 | #define TIME_ORIGIN ((TimeVector) 0) |
15 | #define TIME_UNIT ((TimeVector) 1) | ||
13 | 16 | ||
14 | /** | 17 | /** |
15 | * Constants: Time vectors | 18 | * Type: TimeVector |
16 | * | 19 | * An abstract time vector. |
17 | * TIME_ORIGIN - the origin of times | ||
18 | * TIME_UNIT - a unit time vector | ||
19 | */ | 20 | */ |
20 | const TimeVector TIME_ORIGIN = 0; | 21 | typedef float TimeVector; |
21 | const TimeVector TIME_UNIT = 1; | ||
22 | 22 | ||
23 | #endif | 23 | #endif |