ixfx
    Preparing search index...

    Function compareByZ

    • Compares points based on Z value. XY values are ignored. Returns values:

      • 0: If a.z === b.z
      • 1: A is below B (ie. a.z > b.z)
      • -1: A is above B (ie. a.z < b.z)

      Returns number

      arrayOfPoints.sort(Points.compareByZ);