diff options
author | jonas <himself@jonasgunz.de> | 2019-01-14 17:30:06 +0100 |
---|---|---|
committer | jonas <himself@jonasgunz.de> | 2019-01-14 17:30:06 +0100 |
commit | 60ea1ae7257d60d3ee05f1b9d412a1bd441db7cb (patch) | |
tree | 819063addd6b1abf972adea2e49a83299280c9b2 /cWiremesh.h | |
parent | 5d0b6dd79722707afb15642cc8523b36a6391e0d (diff) | |
download | termgl-60ea1ae7257d60d3ee05f1b9d412a1bd441db7cb.tar.gz |
RTFM!! Error resulted in illegal coordiante pair for drawLine (x2 > x1)
Diffstat (limited to 'cWiremesh.h')
-rw-r--r-- | cWiremesh.h | 13 |
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); |