Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public double slope(Point other) throws IllegalArgumentException {
- if (x == other.x && y == other.y) throw new IllegalArgumentException();
- return (other.y - y) / (other.x - x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement