code: def project_point(p, permutation=None):
      """
      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
      """
      permuted = permute_point(p, permutation=permutation)
      a = permuted[0]
      b = permuted[1]
      x = a + b / 2.0
      y = SQRT3OVER2 * b
      return np.array([x, y])
  
file_path: python-ternary/ternary/helpers.py
imports: import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: project_point(p, permutation) and returns: np