mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
7 lines
No EOL
145 B
JavaScript
7 lines
No EOL
145 B
JavaScript
TCAD.math = {};
|
|
|
|
TCAD.math.distance = function(x1, y1, x2, y2) {
|
|
var dx = x1 - x2;
|
|
var dy = y1 - y2;
|
|
return Math.sqrt(dx * dx + dy * dy);
|
|
} |