MCPcopy Create free account
hub / github.com/careercup/ctci / middle

Method middle

java/Chapter 7/Question7_5/Square.java:17–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 }
16
17 public Point middle() {
18 return new Point((this.left + this.right)/2.0, (this.top + this.bottom)/2.0);
19 }
20
21 public boolean contains(Square other) {
22 if (this.left <= other.left && this.right >= other.right && this.top <= other.top && this.bottom >= other.bottom) {

Callers 1

cutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected