scaleCopy

Scales the point coordinates on a copy of the current point. The callee coordinates will remain unchanged.

Parameters

scaleX Number

The x scale multiplier.

scaleY Number

The y scale multiplier.

Returns

kendo.geometry.Point The new Point instance.

Example

<script>
var geom = kendo.geometry;
var originalPoint = new geom.Point(10, 20);

console.log("Original point:", originalPoint.toString()); // outputs: "10 20"
var scaledCopy = originalPoint.scaleCopy(2, 1.5);
console.log("Scaled copy:", scaledCopy.toString()); // outputs: "20 30"
console.log("Original unchanged:", originalPoint.toString()); // outputs: "10 20"
</script>
In this article
scaleCopy
Not finding the help you need?
Contact Support