MCPcopy Index your code
hub / github.com/BladeTransformerLLC/gauzilla / floatVectorToFloatArray

Function floatVectorToFloatArray

spz.js:5–11  ·  view source on GitHub ↗
(wasmModule, vec, enhancementFunc = (n) => n)

Source from the content-addressed store, hash-verified

3
4
5const floatVectorToFloatArray = (wasmModule, vec, enhancementFunc = (n) => n) => {
6 const pointer = wasmModule.vf32_ptr(vec);
7 const size = vec.size();
8 const buffer = new Float32Array(wasmModule.HEAPF32.buffer, pointer, size);
9 const copiedBuffer = buffer.map(enhancementFunc);
10 return copiedBuffer;
11};
12
13
14const createGaussianCloudFromRaw = (wasmModule, raw) => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected