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

16 lines (15 loc) 453 B
import BasicPreparedGeometry from './BasicPreparedGeometry' export default class PreparedPoint extends BasicPreparedGeometry { constructor() { super() PreparedPoint.constructor_.apply(this, arguments) } static constructor_() { const point = arguments[0] BasicPreparedGeometry.constructor_.call(this, point) } intersects(g) { if (!this.envelopesIntersect(g)) return false return this.isAnyTargetComponentInTest(g) } }