This class provides with operations for Matrix Objects + some changes

Files at this revision

API Documentation at this revision

Comitter:
saloutos
Date:
Thu Oct 01 04:08:00 2020 +0000
Parent:
6:aa5e94cddb3f
Commit message:
Same changes as for Matrix library

Changed in this revision

MatrixMath.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MatrixMath.cpp	Thu Sep 17 17:51:22 2020 +0700
+++ b/MatrixMath.cpp	Thu Oct 01 04:08:00 2020 +0000
@@ -99,6 +99,7 @@
     else
     {
         printf("\n\nERROR:\nMust be square Matrix @ MatrixMath::Determinant\n");
+        return Mat;
     }
 }
 
@@ -139,6 +140,7 @@
                 else
                 {
                     printf("\n\nERROR:\n Matrices have diferent depths @ MatrixMath::dot()\n");
+                    return 0.0f;
                 }
             }
             else
@@ -157,6 +159,7 @@
                 else
                 {
                     printf("\n\nERROR:\n Matrices have diferent depths @ MatrixMath::dot()\n");
+                    return 0.0f;
                 }
             }
         }
@@ -178,6 +181,7 @@
                 else
                 {
                     printf("\n\nERROR:\n Matrices have diferent depths @ MatrixMath::dot()\n");
+                    return 0.0f;
                 }
             }
             else
@@ -196,6 +200,7 @@
                 else
                 {
                     printf("\n\nERROR:\n Matrices have diferent depths @ MatrixMath::dot()\n");
+                    return 0.0f;
                 }
             }
         }
@@ -203,6 +208,7 @@
     else
     {
         printf("\n\nERROR:\n Matrix is not a Vector @ MatrixMath::dot()\n");
+        return 0.0f;
     }
 }
 
@@ -256,6 +262,7 @@
     else
     {
         printf("\n\nERROR:\nMatrix must be square Matrix @ MatrixMath::det");
+        return 0.0f;
     }
 }