We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f474ea commit 71c73ceCopy full SHA for 71c73ce
extensions/ddededodediamante/Vectors.js
@@ -237,11 +237,18 @@
237
}
238
239
vector2D(args) {
240
- return new Float32Array([args.X, args.Y]);
+ return new Float32Array([
241
+ Scratch.Cast.toNumber(args.X),
242
+ Scratch.Cast.toNumber(args.Y),
243
+ ]);
244
245
246
vector3D(args) {
- return new Float32Array([args.X, args.Y, args.Z]);
247
248
249
250
+ Scratch.Cast.toNumber(args.Z),
251
252
253
254
vectorFromAngle(args) {
0 commit comments