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

ToArray

methods

Returns the matrix elements as an [a, b, c, d, e, f] array.

Parameters:digitsNumber

(Optional) Number of fractional digits.

Returns:Array

An array representation of the matrix.

<script>
    var geom = kendo.geometry;
    var matrix = new geom.Matrix(1.123, 0.456, 0.789, 1.234, 10.567, 5.891);
    var array = matrix.toArray();
    console.log("Array representation:", array);
    
    // With specified digits
    var roundedArray = matrix.toArray(2);
    console.log("Rounded to 2 digits:", roundedArray);
</script>
Not finding the help you need?
Contact Support