Adding N3D math