Added getDirection method to Vector2D.java