ku4es-kernel
Version:
kodmunki Utilities for ECMAScript Kernel
21 lines (20 loc) • 660 B
TypeScript
export default class Coord {
public static canParse(candidate: string): boolean;
public static parse(obj: {}): Coord;
public static tryParse(obj: any): Coord | null;
constructor(x?: number, y?: number);
_x: number;
_y: number;
public get x(): number;
public get y(): number;
public get value(): {};
public get half(): Coord;
public get abs(): Coord;
public equals(other: {}): boolean;
public add(other: {}): Coord;
public subtract(other: {}): Coord;
public multiply(other: {}): Coord;
public divide(other: {}): Coord;
public round(toNearest?: number): Coord;
public toString(): string;
}