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/dist/bg2e-js.js +3 -0
- package/dist/bg2e-js.js.map +1 -1
- package/package.json +1 -1
- package/src/math/Mat4.ts +4 -0
package/package.json
CHANGED
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],
|