public Quaternion fromRotationMatrix(Matrix3f matrix) {
        return fromRotationMatrix(matrix.m00, matrix.m01, matrix.m02, matrix.m10,
                matrix.m11, matrix.m12, matrix.m20, matrix.m21, matrix.m22);
    }
Sets the quaternion from the specified rotation matrix.

<p>Does not verify that the argument is a valid rotation matrix.
Positive scaling is compensated for, but not reflection or shear.

@param matrix the input matrix (not null, unaffected)
@return the (modified) current instance (for chaining)
jme3-core/src/main/java/com/jme3/math/Quaternion.java