public void Set(mat2 val, bool transpose = false, bool keep_layout = true) { var t = transpose ? Type.MAT2_T : Type.MAT2; InnerVal.Set(val.serialize(ValType == t && keep_layout ? (float[])InnerVal.arrayv : null)); ValType = t; }
public Value(mat2 val, bool transpose = false) { InnerVal = new InnerValue(val.serialize()); ValType = transpose ? Type.MAT2_T : Type.MAT2; }