MCPcopy
hub / github.com/bbycroft/llm-viz / toString

Method toString

src/utils/vector.ts:102–104  ·  view source on GitHub ↗
(dp: number = 3)

Source from the content-addressed store, hash-verified

100 withSetAt(i: number, v: number): Vec3 { return this.clone().setAt(i, v); }
101 withAddAt(i: number, v: number): Vec3 { return this.clone().addAt(i, v); }
102 toString(dp: number = 3): string {
103 return `Vec3(${numMaxDp(this.x, dp)}, ${numMaxDp(this.y, dp)}, ${numMaxDp(this.z, dp)})`;
104 }
105 rotateAbout(k: Vec3, thetaRad: number) {
106 // https://en.wikipedia.org/wiki/Rodrigues%27_rotation_formula
107 // k must have unit length

Callers 15

drawModelCardFunction · 0.95
toPairMethod · 0.45
numMaxDpFunction · 0.45
randomGenFunction · 0.45
constructorMethod · 0.45
renderInputBoxesFunction · 0.45
renderOutputBoxesFunction · 0.45
numberToCommaSepFunction · 0.45
renderElFunction · 0.45
createBlurFboFunction · 0.45
checkErrorFunction · 0.45
renderWireFunction · 0.45

Calls 1

numMaxDpFunction · 0.85

Tested by

no test coverage detected