New to Kendo UI for jQueryStart a free 30-day trial

DistanceTo

methods

Calculates the distance to another point.

Parameters:pointkendo.geometry.Point

The point to calculate the distance to.

Returns:Number

The straight line distance to the given point.

<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>
Not finding the help you need?
Contact Support