public static TexMat ToTexMat(this Transform2 transform) { return(new TexMat(transform.ToMatrixd())); }