aboutsummaryrefslogtreecommitdiff
path: root/src/math/vector.h
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2023-12-09 06:33:39 +0100
committervimene <vincent.menegaux@gmail.com>2023-12-09 06:33:39 +0100
commitbf39fef7eed69e6d5ecfa272607cbf0fcc53b9a6 (patch)
tree81ac781a634f7618809d6322e1a2d8b544cbc798 /src/math/vector.h
parent19c3e2b83c3c8b58576050b448f2f35d0687e717 (diff)
downloadengine-bf39fef7eed69e6d5ecfa272607cbf0fcc53b9a6.tar.gz
fixed perspective calculations
Diffstat (limited to 'src/math/vector.h')
-rw-r--r--src/math/vector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/vector.h b/src/math/vector.h
index 8f7059a..82e1513 100644
--- a/src/math/vector.h
+++ b/src/math/vector.h
@@ -36,7 +36,6 @@ class Vector3 {
Vector3 operator+(Vector3 other) const;
Vector3 operator-(Vector3 other) const;
Vector3 round() const;
- Vector2 xy() const;
Vector3 cross(Vector3 other) const;
};
@@ -60,8 +59,9 @@ class Vector4 {
Vector4 operator+(Vector4 other) const;
Vector4 operator-(Vector4 other) const;
Vector4 round() const;
+ Vector2 xy() const;
Vector3 xyz() const;
- Vector3 div_by_w() const;
+ Vector4 div_by_w() const;
};
Vector4 operator*(float n, Vector4 other);