code: def project_point(p, permutation=None):
      
      permuted = permute_point(p, permutation=permutation)
      a = permuted[0]
      b = permuted[1]
      x = a + b/2.
      y = SQRT3OVER2 * b
      return numpy.array([x, y])
docs: Maps (x,y,z) coordinates to planar simplex.
  
      Parameters
      ----------
      p: 3-tuple
          The point to be projected p = (x, y, z)
      permutation: string, None, equivalent to "012"
          The order of the coordinates, counterclockwise from the origin