Direction Of a Bar Magnet Having Two Mutually Perpendicular Magnetic Field