mirror of
https://github.com/wisplite/BLE-mesh-sim.git
synced 2026-10-30 13:32:21 -05:00
7 lines
206 B
JavaScript
7 lines
206 B
JavaScript
function generateRealisticLabel() {
|
|
return crypto.randomUUID().substring(0, 8);
|
|
}
|
|
|
|
function calculateDistance(node1, node2) {
|
|
return Math.sqrt((node1.x - node2.x) ** 2 + (node1.y - node2.y) ** 2);
|
|
} |