export default Vec2; /**************************************************************************** * Copyright 2020 EPAM Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ***************************************************************************/ declare function Vec2(x: any, y: any, z: any, ...args: any[]): void; declare class Vec2 { /**************************************************************************** * Copyright 2020 EPAM Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ***************************************************************************/ constructor(x: any, y: any, z: any, ...args: any[]); x: number; y: number; z: number; length(): number; equals(v: any): boolean; add(v: any): Vec2; add_(v: any): void; get_xy0(): Vec2; sub(v: any): Vec2; scaled(s: any): Vec2; negated(): Vec2; yComplement(y1: any): Vec2; addScaled(v: any, f: any): Vec2; normalized(): Vec2; normalize(): boolean; turnLeft(): Vec2; coordStr(): string; toString(): string; max(v: any): any; min(v: any): any; ceil(): Vec2; floor(): Vec2; rotate(angle: any): Vec2; rotateSC(si: any, co: any): Vec2; oxAngle(): number; } declare namespace Vec2 { const ZERO: Vec2; const UNIT: Vec2; function dist(a: any, b: any): number; function max(v1: any, v2: any): Vec2; function min(v1: any, v2: any): Vec2; function sum(v1: any, v2: any): Vec2; function dot(v1: any, v2: any): number; function cross(v1: any, v2: any): number; function angle(v1: any, v2: any): number; function diff(v1: any, v2: any): Vec2; function lc(...args: any[]): Vec2; function lc2(v1: Vec2, f1: number, v2: Vec2, f2: number): Vec2; function centre(v1: any, v2: any): any; }