MCPcopy Create free account
hub / github.com/AI-FanGe/OpenAIglasses_for_Navigation / scalePoints

Method scalePoints

static/visualizer.js:466–468  ·  view source on GitHub ↗
(points, width, height)

Source from the content-addressed store, hash-verified

464 }
465
466 scalePoints(points, width, height) {
467 return points.map(p => this.scalePoint(p, width, height));
468 }
469
470 getContourCenter(points) {
471 const sum = points.reduce((acc, p) => [acc[0] + p[0], acc[1] + p[1]], [0, 0]);

Callers 3

drawSegmentModeMethod · 0.95
drawFlashModeMethod · 0.95
drawTrackModeMethod · 0.95

Calls 1

scalePointMethod · 0.95

Tested by

no test coverage detected