toString

Formats the matrix elements as a string.

Parameters

digits Number

(Optional) Number of fractional digits.

separator String (default: ",")

The separator to place between elements.

Returns

String A string representation of the matrix, e.g. "1, 0, 0, 1, 0, 0".

Example

<script>
    var geom = kendo.geometry;
    var matrix = new geom.Matrix(1.123, 0.456, 0.789, 1.234, 10.567, 5.891);
    
    // Default string representation
    console.log("Default:", matrix.toString());
    
    // With specified digits
    console.log("Rounded to 2 digits:", matrix.toString(2));
    
    // With custom separator
    console.log("With pipe separator:", matrix.toString(2, " | "));
</script>
In this article
toString
Not finding the help you need?
Contact Support