aboutsummaryrefslogtreecommitdiff
path: root/cWiremesh.h
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2019-01-14 17:30:06 +0100
committerGravatar jonas <himself@jonasgunz.de> 2019-01-14 17:30:06 +0100
commit60ea1ae7257d60d3ee05f1b9d412a1bd441db7cb (patch)
tree819063addd6b1abf972adea2e49a83299280c9b2 /cWiremesh.h
parent5d0b6dd79722707afb15642cc8523b36a6391e0d (diff)
downloadtermgl-60ea1ae7257d60d3ee05f1b9d412a1bd441db7cb.tar.gz
RTFM!! Error resulted in illegal coordiante pair for drawLine (x2 > x1)
Diffstat (limited to 'cWiremesh.h')
-rw-r--r--cWiremesh.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/cWiremesh.h b/cWiremesh.h
index 49bf4b9..17231a2 100644
--- a/cWiremesh.h
+++ b/cWiremesh.h
@@ -5,7 +5,7 @@
#include "cRender.h"
-#define _DEPTH 100
+#define _DEPTH 99
struct sCoord3d
{
@@ -21,6 +21,15 @@ struct sCoord3d
ret.z = z + p.z;
return ret;
}
+
+ sCoord3d operator-(sCoord3d p)
+ {
+ sCoord3d ret;
+ ret.x = x - p.x;
+ ret.y = y - p.y;
+ ret.z = z - p.z;
+ return ret;
+ }
};
struct sVector
@@ -44,6 +53,8 @@ public:
void rotate(sCoord3d _val);
+ void scale(int _scalar);
+
sCoord3d getPosition();
void setPosition(int _x, int _y, int _z);