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 2750093 commit a1a6981Copy full SHA for a1a6981
src/index.ts
@@ -1260,9 +1260,7 @@ export class Layer {
1260
vec1: VectorType,
1261
amount: number
1262
): VectorType {
1263
- return vec1.map(
1264
- (el: number | undefined) => (el ?? 0) * amount
1265
- ) as VectorType;
+ return vec1;
1266
}
1267
/**
1268
* Divides a vector by a given scalar amount
@@ -1273,9 +1271,7 @@ export class Layer {
1273
1271
1274
1272
1275
1276
1277
- (el: number | undefined) => (el ?? 0) / amount
1278
1279
1280
1281
* Constrains a given number, or each element of an array, to fall within a a given range
0 commit comments