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

Method fromTranslation

src/utils/matrix.ts:138–144  ·  view source on GitHub ↗
(a: Vec3)

Source from the content-addressed store, hash-verified

136 }
137
138 static fromTranslation(a: Vec3) {
139 let res = new Mat4f();
140 res[12] = a.x;
141 res[13] = a.y;
142 res[14] = a.z;
143 return res;
144 }
145
146 static fromScaleTranslation(s: Vec3, t: Vec3) {
147 let res = new Mat4f();

Callers 12

blockDimensionFunction · 0.80
blockIndexFunction · 0.80
renderIndexesFunction · 0.80
drawTextOnModelFunction · 0.80
drawModelCardFunction · 0.80
onMagnifyClickFunction · 0.80
drawBlockInfoFunction · 0.80
drawSymbolBetweenBlocksFunction · 0.80
walkthrough02_EmbeddingFunction · 0.80
renderModelFunction · 0.80
genCubeGeomFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected