@maplat/tin
Version:
JavaScript library which performs homeomorphic conversion mutually between the coordinate systems of two planes based on the control points.
22 lines (21 loc) • 649 B
TypeScript
import { Tins, Tri } from '@maplat/transform';
type BiDirectionKey = "forw" | "bakw";
type TinsBD = {
[key in BiDirectionKey]?: Tins;
};
type SearchTris = {
[key in BiDirectionKey]: Tri;
};
export type SearchIndex = {
[key: string]: SearchTris[];
};
/**
* 検索インデックスに三角形を追加する
*
* @param searchIndex 検索インデックス
* @param tris 追加する三角形ペア
* @param tins (オプション)追加先の三角形群
* @throws キーの不一致エラー
*/
declare function insertSearchIndex(searchIndex: SearchIndex, tris: SearchTris, tins?: TinsBD): void;
export { insertSearchIndex };