Moved 3d math opperations to their own module.