rc-js-util
Advanced tools
Comparing version 5.0.0-alpha.3 to 5.0.0-alpha.4
import { AVec2 } from "./a-vec2"; | ||
import { ITypedArrayTupleFactory } from "../i-typed-array-tuple-factory"; | ||
import type { EArrayTypeGuard } from "../e-typed-array-guard"; | ||
import { AMat3 } from "../mat3/a-mat3"; | ||
/** | ||
@@ -23,3 +24,4 @@ * @public | ||
dotProduct(a: AVec2<TTypedArray>, b: AVec2<TTypedArray>, result?: AVec2<TTypedArray>): AVec2<TTypedArray>; | ||
getMat3Multiply(a: AMat3<EArrayTypeGuard>, b: AVec2<TTypedArray>, result?: AVec2<TTypedArray>): AVec2<TTypedArray>; | ||
getLoggableValue(value: AVec2<TTypedArray>): number[][]; | ||
} |
@@ -38,2 +38,7 @@ "use strict"; | ||
} | ||
getMat3Multiply(a, b, result = this.factory.createOneEmpty()) { | ||
result[0] = a[0] * b[0] + a[3] * b[0] + a[6]; | ||
result[1] = a[1] * b[1] + a[4] * b[1] + a[7]; | ||
return result; | ||
} | ||
getLoggableValue(value) { | ||
@@ -40,0 +45,0 @@ return [ |
{ | ||
"name": "rc-js-util", | ||
"version": "5.0.0-alpha.3", | ||
"version": "5.0.0-alpha.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
447111
6120