Fixed not accounting for shearing effects

Now using vectors to indicate the position of each vertex of the cube.