public Matrix3f set(float[][] matrix) {
        if (matrix.length != 3 || matrix[0].length != 3) {
            throw new IllegalArgumentException(
                    "Array must be of size 9.");
        }

        m00 = matrix[0][0];
        m01 = matrix[0][1];
        m02 = matrix[0][2];
        m10 = matrix[1][0];
        m11 = matrix[1][1];
        m12 = matrix[1][2];
        m20 = matrix[2][0];
        m21 = matrix[2][1];
        m22 = matrix[2][2];

        return this;
    }
Copies all 9 elements from the specified 2-dimensional array.

@param matrix the input array (not null, length=3, the first element
    having length=3, the other elements having length&ge;3, unaffected)
@return the (modified) current instance (for chaining)
@throws IllegalArgumentException if the array is the wrong size
jme3-core/src/main/java/com/jme3/math/Matrix3f.java