Matrix is a class that allows for the manipulation of a transform matrix. This class is a work in progress.
Matrix_roundRounds values
applyCSSTextval
                    
                Parses a string and updates the matrix.
val
                        String
                    
                    
                    A css transform string
decomposeReturns an array of transform commands that represent the matrix.
Array
deg2raddeg
                    
                Converts a degree value to a radian.
deg
                        Number
                    
                    
                    Degree value to be converted to radian.
Number
getContentRectwidth
                    
                height
                    
                x
                    
                y
                    
                Returns the left, top, right and bottom coordinates for a transformed item.
Object
getDeterminantReturns the determinant of the matrix.
Number
getMatrixArrayReturns a 3x3 Matrix array
/ \ | matrix[0][0] matrix[1][0] matrix[2][0] | | matrix[0][1] matrix[1][1] matrix[2][1] | | matrix[0][2] matrix[1][2] matrix[2][2] | \ /
Array
getTransformArrayval
                    
                Parses a string and returns an array of transform arrays.
val
                        String
                    
                    
                    A css transform string
Array
identityReturns an identity matrix.
Object
initconfig
                    
                Initializes a matrix.
config
                        Object
                    
                    
                    Specified key value pairs for matrix properties. If a property is not explicitly defined in the config argument, the default value will be used.
inverseReturns the inverse (in array form) of the matrix.
Array
multiplea
                    
                b
                    
                c
                    
                d
                    
                dx
                    
                dy
                    
                Updates the matrix.
rad2degrad
                    
                Converts a radian value to a degree.
rad
                        Number
                    
                    
                    Radian value to be converted.
Number
skewx
                    
                y
                    
                Applies a skew transformation.
toCSSTextReturns a string of text that can be used to populate a the css transform property of an element.
String
toFilterTextReturns a string that can be used to populate the css filter property of an element.
String
translatex
                    
                y
                    
                Applies translate transformation.
transposeReturns the transpose of the matrix
Array
_defaultsDefault values for the matrix
_rounderUsed as value for the _rounding method.