com.orsoncharts.graphics3d

## Class ZOrderComparator

- java.lang.Object
- - com.orsoncharts.graphics3d.ZOrderComparator

- All Implemented Interfaces:
    java.util.Comparator<Face>

      public class ZOrderComparator
      extends java.lang.Object
      implements java.util.Comparator<Face>

  A comparator that orders `Face` instances by Z-order.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ZOrderComparator(Point3D[] pts)` Creates a new comparator.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Face f1, Face f2)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.util.Comparator

      `comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- - ### Constructor Detail

    - #### ZOrderComparator

          public ZOrderComparator(Point3D[] pts)

      Creates a new comparator.
      Parameters:
        `pts` - the points.

  - ### Method Detail

    - #### compare

          public int compare(Face f1,
                             Face f2)

      Specified by:
        `compare` in interface `java.util.Comparator<Face>`