molstar
Version:
A comprehensive macromolecular library.
10 lines (9 loc) • 418 B
TypeScript
/**
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { NumberArray } from '../../mol-util/type-helpers.js';
import { Vec2 } from '../linear-algebra.js';
/** raycast along x-axis and apply even-odd rule */
export declare function pointInPolygon(point: Vec2, polygon: NumberArray, count: number): boolean;