Graph 3D (Vector Rotation Source Included) C++

Posted on by Kenny Cason
tags = [ 3d, c++, matrix, rotation, vector ]

This program implements my simple Vector3D.h source to draw simple graphs using SDL. While it’s not terribly advanced, it should be pretty fun to tinker with. To learn more about 3D rotations including the mathematics and more source (Java) examples, view my previous post –> 3D Rotation Matrix - Graph3D. The source code and linux executables can be downloaded here. If you don’t want the Graph utility the single Vector3D C++ source file can be found here. Note that this version is more up-to-date than the one included in the zip file.

Below is a few of the graphs that I created. All of which can be found in main.cpp (there is a section in the code where you can uncomment the function that you want to graph!)
3D  graph 3D  graph 3D  graph 3D  graph
3D  graph 3D  graph 3D  graph 3D  graph
3D  graph 3D  graph 3D  graph 3D  graph
3D  graph 3D  graph 3D  graph 3D  graph
3D  graph 3D  graph 3D  graph 3D  graph
comments powered by Disqus