summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt2
-rw-r--r--zp/include/zp/mth.h18
2 files changed, 11 insertions, 9 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index de1edc7..08d1707 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -239,6 +239,8 @@
* Fix install target;
* Fix comments;
+* Fix typings of vectors;
+
# 0.0.2
* Migrate to CMake;
diff --git a/zp/include/zp/mth.h b/zp/include/zp/mth.h
index dbfe695..ff4c0e5 100644
--- a/zp/include/zp/mth.h
+++ b/zp/include/zp/mth.h
@@ -29,8 +29,8 @@ typedef struct {
} zp_divmodresi04s;
typedef struct {
- double x;
- double y;
+ zp_f02 x;
+ zp_f02 y;
} zp_vec2f02;
typedef struct {
zp_f04 x;
@@ -38,9 +38,9 @@ typedef struct {
} zp_vec2f04;
typedef struct {
- double x;
- double y;
- double z;
+ zp_f02 x;
+ zp_f02 y;
+ zp_f02 z;
} zp_vec3f02;
typedef struct {
zp_f04 x;
@@ -49,10 +49,10 @@ typedef struct {
} zp_vec3f04;
typedef struct {
- double x;
- double y;
- double z;
- double w;
+ zp_f02 x;
+ zp_f02 y;
+ zp_f02 z;
+ zp_f02 w;
} zp_vec4f02;
typedef struct {
zp_f04 x;