Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Rotates a matrix.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Matrix | 12.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
MatrixRef | The matrix reference number. | $matrix |
Returns matrix reference number or error.
Try the function:
# test Matrix.Rotate in file Kontakte
Set Variable [ $matrix ; Value: MBS("Matrix.New";3;3) ]
# set values
Set Variable [ $r ; Value: MBS( "Matrix.SetColumn"; $matrix; 0;"15¶07¶92" ) ]
Set Variable [ $r ; Value: MBS( "Matrix.SetColumn"; $matrix; 1;"17¶3¶60" ) ]
Set Variable [ $r ; Value: MBS( "Matrix.SetColumn"; $matrix; 2;"15¶1¶87" ) ]
# rotate
Set Variable [ $matrix2 ; Value: MBS( "Matrix.Rotate"; $matrix) ]
Set Variable [ $matrix3 ; Value: MBS( "Matrix.Rotate"; $matrix2) ]
# query
Set Variable [ $text1 ; Value: MBS( "Matrix.Text"; $matrix) ]
Set Variable [ $text2 ; Value: MBS( "Matrix.Text"; $matrix2) ]
Set Variable [ $text3 ; Value: MBS( "Matrix.Text"; $matrix3) ]
Show Custom Dialog [ "Result" ; $text1 & "¶rotated:¶" & $text2 & "¶and back:¶" & $text3 ]
#
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $matrix) ]
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $matrix2) ]
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $matrix3) ]
This function checks for a license.
Created 21st July 2022, last changed 21st July 2022