UNPKG

node-red-contrib-tak-registration

Version:

A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK

20 lines (18 loc) 408 B
import CGAlgorithms from './CGAlgorithms' import PointInRing from './PointInRing' export default class SimplePointInRing { constructor () { this._pts = null let ring = arguments[0] this._pts = ring.getCoordinates() } isInside (pt) { return CGAlgorithms.isPointInRing(pt, this._pts) } interfaces_ () { return [PointInRing] } getClass () { return SimplePointInRing } }