summaryrefslogtreecommitdiff
path: root/cWiremesh.cpp
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2019-01-21 19:10:15 +0100
committerGravatar jonas <himself@jonasgunz.de> 2019-01-21 19:10:15 +0100
commitb8aa898b1f3182d028a67c39d8643b331c565053 (patch)
tree27a3f5cfec680df457b3000f79d07b8ba81e7870 /cWiremesh.cpp
parente2063723f9dcd32cabd5f2441228fd1539799a75 (diff)
downloadtermgl-b8aa898b1f3182d028a67c39d8643b331c565053.tar.gz
started rotate()
Diffstat (limited to 'cWiremesh.cpp')
-rw-r--r--cWiremesh.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/cWiremesh.cpp b/cWiremesh.cpp
index 23c7667..91f92af 100644
--- a/cWiremesh.cpp
+++ b/cWiremesh.cpp
@@ -17,7 +17,7 @@ void cWiremesh::addVector(sCoord3d _origin, sCoord3d _vector, char _char, WORD _
void cWiremesh::rotate(sCoord3d _val)
{
- //Implement rotate
+ angle = angle + _val;
}
void cWiremesh::reset()
@@ -80,3 +80,23 @@ void cWiremesh::scale(float _scalar)
vectors[i].direction.z = (int)((float)vectors[i].direction.z * _scalar);
}
}
+
+sCoord3d applyRotation(sCoord3d _vector, sCoord3d _angle)
+{
+ sCoord3d ret = _vector;
+
+ if(_angle.x)
+ {
+
+ }
+ if(_angle.y)
+ {
+
+ }
+ if(_angle.z)
+ {
+
+ }
+
+ return ret;
+}