Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/ctci
/ intersect
Method
intersect
java/Chapter 7/Question7_3/Line.java:18–21 ·
view source on GitHub ↗
(Line line2)
Source
from the content-addressed store, hash-verified
16
}
17
18
public
boolean intersect(Line line2) {
19
return
Math.abs(slope - line2.slope) > epsilon ||
20
Math.abs(yintercept - line2.yintercept) < epsilon;
21
}
22
};
Callers
1
main
Method · 0.95
Calls
1
abs
Method · 0.80
Tested by
no test coverage detected