transformCopy

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

Parameters

tansformation kendo.geometry.Transformation

The transformation to apply.

Returns

kendo.geometry.Point The new Point instance.

Example

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

console.log("Original point:", originalPoint.toString()); // outputs: "10 20"
var transformedCopy = originalPoint.transformCopy(transformation);
console.log("Transformed copy:", transformedCopy.toString()); // outputs: "20 40"
console.log("Original unchanged:", originalPoint.toString()); // outputs: "10 20"
</script>
In this article
transformCopy
Not finding the help you need?
Contact Support