distanceTo
Calculates the distance to another point.
Parameters
point kendo.geometry.Point
The point to calculate the distance to.
Returns
Number
The straight line distance to the given point.
Example
<script>
var geom = kendo.geometry;
var point1 = new geom.Point(0, 0);
var point2 = new geom.Point(3, 4);
var distance = point1.distanceTo(point2);
console.log(distance); // outputs: 5 (Pythagorean theorem: sqrt(3² + 4²))
</script>
In this article