bug: quaternion?
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "computercraft-mutil",
|
"name": "computercraft-mutil",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
import { Vec3 } from "./vec";
|
import { Vec3 } from "./vec";
|
||||||
|
|
||||||
|
const math = globalThis.math;
|
||||||
|
|
||||||
export class Quaternion {
|
export class Quaternion {
|
||||||
public constructor(
|
public constructor(
|
||||||
public x: number,
|
public x: number,
|
||||||
public y: number,
|
public y: number,
|
||||||
public z: number,
|
public z: number,
|
||||||
public w: number,
|
public w: number,
|
||||||
) { }
|
) {}
|
||||||
|
|
||||||
public static fromXYZ({
|
public static fromXYZ({
|
||||||
x,
|
x,
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
"tstl": {
|
"tstl": {
|
||||||
"luaTarget": "JIT",
|
"luaTarget": "JIT",
|
||||||
"buildMode": "library",
|
"buildMode": "library",
|
||||||
"noImplicitSelf": true
|
"noImplicitSelf": true,
|
||||||
|
"noImplicitGlobalVariables": true
|
||||||
},
|
},
|
||||||
"include": ["src/**/*"]
|
"include": ["src/**/*"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user