finished (?)
This commit is contained in:
65
ts-lua/types/structs/v2.d.ts
vendored
65
ts-lua/types/structs/v2.d.ts
vendored
@@ -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
|
||||
81
ts-lua/types/structs/v3.d.ts
vendored
81
ts-lua/types/structs/v3.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user