feat: quaternion
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "computercraft-mutil",
|
"name": "computercraft-mutil",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
export * from "./multi-pid";
|
export * from "./multi-pid";
|
||||||
export * from "./pid";
|
export * from "./pid";
|
||||||
export * from "./vec";
|
export * from "./vec";
|
||||||
|
export * from "./quaternion";
|
||||||
|
|||||||
@@ -62,9 +62,3 @@ export class Vec3 {
|
|||||||
return this.mul(math.cos(theta)).add(relativeDir.mul(math.sin(theta)));
|
return this.mul(math.cos(theta)).add(relativeDir.mul(math.sin(theta)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Quaternion {
|
|
||||||
x: number;
|
|
||||||
y: number;
|
|
||||||
z: number;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user