We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc9d28b commit d3e3b7dCopy full SHA for d3e3b7d
examples/example.js
@@ -55,3 +55,8 @@ try {
55
console.log('error:', error.toString());
56
// error: Error: set x() not implemented
57
}
58
+
59
+// creating vector inside calculation works, but has overhead
60
+const inlineVec = new Victor(() => new Victor(25, 30) / 2);
61
+console.log(debug`inlineVec: ${inlineVec}`);
62
+// inlineVec: { x: 12.5, y: 15, z: 0 }
0 commit comments