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

14 lines (13 loc) 362 B
import Double from '../../../../../java/lang/Double' import ItemDistance from './ItemDistance' export default class GeometryItemDistance { distance(item1, item2) { if (item1 === item2) return Double.MAX_VALUE const g1 = item1.getItem() const g2 = item2.getItem() return g1.distance(g2) } get interfaces_() { return [ItemDistance] } }