partially implement Matrix.toTransformString()