Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public boolean equals(Line other)
  2. {
  3. if(isVert != other.isVert)
  4. {
  5. return false;
  6. }
  7.  
  8. if(areClose(isVert, other.isVertical()) && areClose(slope, other.getSlope())&& areClose(intercept, other.getIntercept()
  9. {
  10. return true;
  11. }
  12. else
  13. {
  14. return false;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement