MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / new

Method new

Il2cppHook/_Ufunc.js:7227–7233  ·  view source on GitHub ↗
(x, y, z)

Source from the content-addressed store, hash-verified

7225 this.toFixedNum = value;
7226 }
7227 new(x, y, z) {
7228 let allocMem = allocVector(0, 0, 0);
7229 allocMem.writeFloat(x);
7230 allocMem.add(Process.pageSize).writeFloat(y);
7231 allocMem.add(Process.pageSize * 2).writeFloat(z);
7232 return new Vector3Impl(allocMem);
7233 }
7234 toString() {
7235 return `Vector3(${this.handle}) : (${this.x.toFixed(this.toFixedNum)}, ${this.y.toFixed(this.toFixedNum)}, ${this.z.toFixed(this.toFixedNum)})`;
7236 }

Callers

nothing calls this directly

Calls 1

allocVectorFunction · 0.70

Tested by

no test coverage detected