Determining Magnetic Field Direction