Comparing version 0.0.87 to 0.0.88
{ | ||
"name": "ogl", | ||
"version": "0.0.87", | ||
"version": "0.0.88", | ||
"description": "WebGL Library", | ||
@@ -5,0 +5,0 @@ "main": "src/index.mjs", |
@@ -121,2 +121,7 @@ import * as Vec3Func from './functions/Vec3Func.js'; | ||
applyMatrix3(mat3) { | ||
Vec3Func.transformMat3(this, this, mat3); | ||
return this; | ||
} | ||
applyMatrix4(mat4) { | ||
@@ -123,0 +128,0 @@ Vec3Func.transformMat4(this, this, mat4); |
@@ -57,2 +57,11 @@ import * as Vec4Func from './functions/Vec4Func.js'; | ||
multiply(v) { | ||
Vec4Func.scale(this, this, v); | ||
return this; | ||
} | ||
dot(v) { | ||
return Vec4Func.dot(this, v); | ||
} | ||
fromArray(a, o = 0) { | ||
@@ -59,0 +68,0 @@ this[0] = a[o]; |
289121
8047