bg2e-js 2.2.8 → 2.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bg2e-js",
3
- "version": "2.2.8",
3
+ "version": "2.2.9",
4
4
  "description": "a graphics engine for productivity applications",
5
5
  "main": "./dist/bg2e-js.js",
6
6
  "types": "./src/index.ts",
package/src/math/Mat4.ts CHANGED
@@ -244,6 +244,10 @@ export default class Mat4 extends NumericArray {
244
244
  return Mat4.TransformDirection(this, new Vec(0.0, -1.0, 0.0));
245
245
  }
246
246
 
247
+ get translation(): Vec {
248
+ return new Vec(this[12], this[13], this[14]);
249
+ }
250
+
247
251
  row(i: number): Vec {
248
252
  return new Vec(
249
253
  this[i * 4],