Added a constructor to create a Vector from a Direction.