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

Method add

src/utils/vector.ts:42–42  ·  view source on GitHub ↗
(a: Vec3)

Source from the content-addressed store, hash-verified

40 }
41
42 add(a: Vec3): Vec3 { return new Vec3(this.x + a.x, this.y + a.y, this.z + a.z); }
43 sub(a: Vec3): Vec3 { return new Vec3(this.x - a.x, this.y - a.y, this.z - a.z); }
44 dot(a: Vec3): number { return this.x * a.x + this.y * a.y + this.z * a.z; }
45 mul(a: number): Vec3 { return new Vec3(this.x * a, this.y * a, this.z * a); }

Callers 15

addSourceDestCurveLineFunction · 0.95
rotateAboutMethod · 0.45
lerpMethod · 0.45
getChangesFunction · 0.45
SubscriptionsClass · 0.45
runProgramFunction · 0.45
runMouseHitTestingFunction · 0.45
cameraToMatrixViewFunction · 0.45
genModelViewMatricesFunction · 0.45
applySpringStepFunction · 0.45
drawModelCardFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected