finished (?)

This commit is contained in:
2021-06-25 20:12:25 -05:00
parent cf00c7c212
commit df29e4d0ef
11 changed files with 150 additions and 150 deletions

View File

@@ -1,66 +1,33 @@
/**
* a 2x1 matrix
* @public
* @noSelf
*/
declare class v2 {
readonly x: float;
readonly y: float;
/**
*
* @remarks float
* **instanciating this class with `new` will break the lua**
* @deprecated
*/
readonly x: number;
/**
*
* @remarks float
*/
readonly y: number;
/**
*
* @param x float
* @param y float
*/
constructor(x?: number, y?: number);
/**
*
* @param val float
*/
public __add(val: v2|v3|number): v2;
/**
*
* @param val float
*/
public __sub(val: v2|v3|number): v2;
/**
*
* @param val float
*/
public __mul(val: v2|v3|number): v2;
/**
*
* @param val float
*/
public __div(val: v2|v3|number): v2;
constructor(x: float, y: float);
public __add(val: v2|v3|float): v2;
public __sub(val: v2|v3|float): v2;
public __mul(val: v2|v3|float): v2;
public __div(val: v2|v3|float): v2;
public __eq(val: v2): boolean;
public __lt(val: v2): boolean;
public __le(val: v2): boolean;
public __tostring(): string
/**
*
* @returns float
*/
public magnitude(val: v2|null): number;
public magnitude(val: v2|null): float;
}
declare function v2(x?: number, y?: number): v2
/**
* @noSelf
*/
declare function v2(x: float, y: float): v2

View File

@@ -18,86 +18,37 @@
* pos += dir
*
* @public
* @noSelf
*/
declare class v3 {
/**
*
* @remarks float
*/
readonly x: number;
readonly x: float;
readonly y: float;
readonly z: float;
/**
*
* @remarks float
* **instanciating this class with `new` will break the lua**
* @deprecated
*/
readonly y: number;
/**
*
* @remarks float
*/
readonly z: number;
/**
*
* @param x float
* @param y float
* @param z float
*/
constructor(x?: number, y?: number, z?: number);
/**
*
* @param val float
*/
public __add(val: v2|v3|number): v3;
/**
*
* @param val float
*/
public __sub(val: v2|v3|number): v3;
/**
*
* @param val float
*/
public __mul(val: v2|v3|number): v3;
/**
*
* @param val float
*/
public __div(val: v2|v3|number): v3;
constructor(x: float, y: float, z: float);
public __add(val: v2|v3|float): v3;
public __sub(val: v2|v3|float): v3;
public __mul(val: v2|v3|float): v3;
public __div(val: v2|v3|float): v3;
public __eq(val: v2): boolean;
public __lt(val: v2): boolean;
public __le(val: v2): boolean;
public __tostring(): string
/**
*
* @returns float
*/
public magnitude(val: v3|null): number;
/**
*
* @privateRemarks
*
* I don't understand this methough function enough to even try to test this in typescript
*
*/
public magnitude(val: v3|null): float;
public transformRotToDir(): void;
public radToDeg(): void;
public degToRad(): void;
}
declare function v3(x?: number, y?: number, z?: number): v3
/**
* @noSelf
*/
declare function v3(x: float, y: float, z: float): v3