Rotation

Rotation about the Z axis:

	newx = oldx * cos(a) - oldy * sin(a)
	newy = oldx * sin(a) + oldy * cos(a)
	newz = oldz

Rotation about X or Y is similar, with just the x, y, & z variables shuffled around.

Rotation about an arbitrary axis is more complex, but based on the same idea