aboutsummaryrefslogtreecommitdiff
path: root/src/basic/math.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/math.cpp')
-rw-r--r--src/basic/math.cpp94
1 files changed, 0 insertions, 94 deletions
diff --git a/src/basic/math.cpp b/src/basic/math.cpp
deleted file mode 100644
index 81fcbbf..0000000
--- a/src/basic/math.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-#include <basic/math.hpp>
-
-/* V2ST */
-
-bool
-V2ST::operator==(V2ST& b)
-{
- bool result = this->x == b.x && this->y == b.y;
- return result;
-}
-
-
-
-/* V2F32 */
-
-V2F32
-V2F32::operator/(float scalar)
-{
- V2F32 result {};
- result.x = this->x / scalar;
- result.y = this->y / scalar;
- return result;
-}
-
-V2F32
-V2F32::operator*(float scalar)
-{
- V2F32 result {};
- result.x = this->x * scalar;
- result.y = this->y * scalar;
- return result;
-}
-
-V2F32 V2F32::operator+(V2F32 other) {
- V2F32 result {};
- result.x = this->x + other.x;
- result.y = this->y + other.y;
- return result;
-}
-
-
-/* V3F32 */
-
-V3F32 V3F32::operator/(float scalar) {
- V3F32 result = {};
- result.x = this->x / scalar;
- result.y = this->y / scalar;
- result.z = this->z / scalar;
- return result;
-}
-
-V3F32 V3F32::operator*(float scalar) {
- V3F32 result = {};
- result.x = this->x * scalar;
- result.y = this->y * scalar;
- result.z = this->z * scalar;
- return result;
-}
-
-
-/* V4F32 */
-
-V4F32
-V4F32::operator/(float scalar)
-{
- V4F32 result {};
- result.x = this->x / scalar;
- result.y = this->y / scalar;
- result.z = this->z / scalar;
- result.w = this->w / scalar;
- return result;
-}
-
-V4F32
-V4F32::operator*(float scalar)
-{
- V4F32 result {};
- result.x = this->x * scalar;
- result.y = this->y * scalar;
- result.z = this->z * scalar;
- result.w = this->z * scalar;
- return result;
-}
-
-
-/* V2I32 */
-
-bool
-V2I32::operator==(V2I32 other)
-{
- bool result = x == other.x && y == other.y;
- return result;
-}
-