@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
30 lines • 1.02 kB
TypeScript
import type { ReadonlyVec } from "@thi.ng/vectors";
import type { Circle } from "./api/circle.js";
/**
* Inverts circle `c` in regards to reference circle `ref`. Mutates `c` in place
* and returns it.
*
* @remarks
* Reference:
* https://en.wikipedia.org/wiki/Inversive_geometry#Inversion_in_a_circle
*
* @param c
* @param ref
*/
export declare const invertCircle: (c: Circle, ref: Circle) => Circle;
/**
* Applies inversion of point `p` in regards to reference circle `ref`.
*
* @remarks
* From Wikipedia: "...for a point inside the circle, the nearer the point to
* the center, the further away its transformation. While for any point (inside
* or outside the circle), the nearer the point to the circle, the closer its
* transformation."
*
* https://en.wikipedia.org/wiki/Inversive_geometry#Inversion_in_a_circle
*
* @param p
* @param ref
*/
export declare const invertCirclePoint: (p: ReadonlyVec, ref: Circle) => import("@thi.ng/vectors").Vec<number>;
//# sourceMappingURL=invert-circle.d.ts.map