# 16.11. Exercises¶

1. Add a distanceFromPoint method that works similar to distanceFromOrigin except that it takes a Point as a parameter and computes the distance between that point and self.
1. Add a method reflect_x to Point which returns a new Point, one which is the reflection of the point about the x-axis. For example, Point(3, 5).reflect_x() is (3, -5)
1. Add a method slope_from_origin which returns the slope of the line joining the origin to the point. For example,

>>> Point(4, 10).slope_from_origin()
2.5


What cases will cause your method to fail? Return None when it happens.

>>> print(Point(4, 11).get_line_to(Point(6, 15)))

1. Add a method called move that will take two parameters, call them dx and dy. The method will cause the point to move in the x and y direction the number of units given. (Hint: you will change the values of the state of the point)