This is a N-Dimensional Vector class written in C++. While it can be used for any dimension, if you would like to use 3 or less dimensions including rotation functions check out my previous post (here) VectorND.cpp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 [...]

## Posts Tagged ‘3D’

## Vector 3D structure with Operation overloads and basic functions – C++

**kenny**on September 16th, 2010

This is my Vector3D structure with a set of appropriate operation overloads(-,+,/,*,–,++,etc) that I use for various math operations as well. Feel free to add upon it or do whatever you like with it. (Update the — and ++ operators are not correctly overloaded ) 1 2 3 4 5 6 7 8 9 10 [...]

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

**kenny**on December 19th, 2009

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 [...]

## 3D Cube Engine – Java

**kenny**on June 27th, 2009

3x3x3 Y – Increase dimensions. i.e. 4x4x4 -> 5x5x5 (not that if solid mode is true, then it will render slower Arrows – Translate the cubes across the screen If you’re only interested in the Transformation algorithms, check the below link: Graph4D – demonstrates methods and actual source code for rotating a 4D vector. Graph3D [...]

## 4D Rotation Matrix – Graph 4D

**kenny**on January 8th, 2009

This program rotates points about the XY, YZ, XZ, XU, YU, and ZU axises. I then projects each 4D vector to the 2D canvas. The Jar file can be downloaded here: Graph4D.jar Before looking at the source, let’s take a look at some of the fundamental mathematics behind the software. If you are uncomfortable with [...]