public Matrix4f mult(float scalar) {
        Matrix4f out = new Matrix4f();
        out.set(this);
        out.multLocal(scalar);
        return out;
    }
Multiply by the specified scalar.

@param scalar the scale factor to apply to all elements
@return a new Matrix4f with every element scaled
jme3-core/src/main/java/com/jme3/math/Matrix4f.java