Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
getLineIntersectionPoint
Method · 0.95
Calls
2
divide
Method · 0.80
add
Method · 0.45
Tested by
no test coverage detected