MCPcopy Index your code
hub / github.com/graphif/project-graph / getCenter

Method getCenter

packages/shapes/src/Rectangle.ts:344–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 }
343
344 public getCenter(): Vector {
345 return this.location.add(this.size.divide(2));
346 }
347
348 static fromPoints(p1: Vector, p2: Vector): Rectangle {
349 const location = p1.clone();

Callers 1

Calls 2

divideMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected