create PMatrix2D or 3D in PShapeOpenGL depending on value of is3D