init
This commit is contained in:
33
structs/v2.d.ts
vendored
Normal file
33
structs/v2.d.ts
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* a 2x1 matrix
|
||||
* @public
|
||||
* @noSelf
|
||||
*/
|
||||
declare class v2 {
|
||||
|
||||
readonly x: float;
|
||||
readonly y: float;
|
||||
|
||||
/**
|
||||
* **instanciating this class with `new` will break the lua**
|
||||
* @deprecated
|
||||
*/
|
||||
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
|
||||
|
||||
public magnitude(val: v2|null): float;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @noSelf
|
||||
*/
|
||||
declare function v2(x: float, y: float): v2
|
||||
Reference in New Issue
Block a user