export declare class Coord { x: number; y: number; constructor(x: number, y: number); copyFrom(c: Coord): void; sub(c: Coord): Coord; add(c: Coord): Coord; copy(): Coord; getTheta(v: Coord): number; norm2(): number; getRho(v: Coord): number; normalize(): Coord; rotateQuarter(): Coord; scale(r: number): Coord; translate(shift: Vect): void; rtranslate(shift: Vect): void; opposite(): Coord; dist2(pos: Coord): number; isInRect(c1: Coord, c2: Coord): boolean; middle(c: Coord): Coord; /** * Compute the orthogonal projection of this on the line defined * by a point 'point' and a non zero direction. */ orthogonalProjection(point: Coord, direction: Vect): Coord; vectorTo(other: Coord): Vect; } export declare function middle(c1: Coord, c2: Coord): Coord; export declare class Vect { x: number; y: number; constructor(x: number, y: number); /** * */ rescale(r: number): void; /** * UNTESTED * Return the dot product of this vector with another one. * `u.dot(v) = u.x*v.x + u.y*v.y` */ dot(other: Vect): number; norm(): number; /** * `v = v*s/norm(v)` */ setNorm(s: number): void; /** * Rotates `this` Vect. * @param angle is in radians (3.14 or Math.PI for an half circle) */ rotate(angle: number): void; set_from(v: Vect): void; sub(v: Vect): Vect; translate(v: Vect): void; opposite(): Vect; static fromCoords(src: Coord, dest: Coord): Vect; }