When your mind is happy and peaceful, then you will also see joy and happiness in the world around you, and you see everyone as good-natured. When your mind is filled with negativity and aversions, then everyone appears as an enemy to you. It all depends on perspective.