StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
StackGenVis/frontend/node_modules/gl-mat3/scale.js

30 lines
513 B

4 years ago
module.exports = scale
/**
* Scales the mat3 by the dimensions in the given vec2
*
* @alias mat3.scale
* @param {mat3} out the receiving matrix
* @param {mat3} a the matrix to rotate
* @param {vec2} v the vec2 to scale the matrix by
* @returns {mat3} out
**/
function scale(out, a, v) {
var x = v[0]
var y = v[1]
out[0] = x * a[0]
out[1] = x * a[1]
out[2] = x * a[2]
out[3] = y * a[3]
out[4] = y * a[4]
out[5] = y * a[5]
out[6] = a[6]
out[7] = a[7]
out[8] = a[8]
return out
}