Files
types-ts-2take1/structs/v2.d.ts
2021-06-27 20:27:03 -05:00

33 lines
667 B
TypeScript

/**
* 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