Class Split<T>

  • Type Parameters:
    T - Split type

    public final class Split<T>
    extends java.lang.Object
    Class containing the result of splitting an object with a hyperplane.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T minus
      Part of the object lying on the minus side of the splitting hyperplane.
      private T plus
      Part of the object lying on the plus side of the splitting hyperplane.
    • Constructor Summary

      Constructors 
      Constructor Description
      Split​(T minus, T plus)
      Build a new instance from its parts.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SplitLocation getLocation()
      Get the location of the object with respect to its splitting hyperplane.
      T getMinus()
      Get the part of the object lying on the minus side of the splitting hyperplane or null if no such part exists.
      T getPlus()
      Get the part of the object lying on the plus side of the splitting hyperplane or null if no such part exists.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • minus

        private final T minus
        Part of the object lying on the minus side of the splitting hyperplane.
      • plus

        private final T plus
        Part of the object lying on the plus side of the splitting hyperplane.
    • Constructor Detail

      • Split

        public Split​(T minus,
                     T plus)
        Build a new instance from its parts.
        Parameters:
        minus - part of the object lying on the minus side of the splitting hyperplane or null if no such part exists
        plus - part of the object lying on the plus side of the splitting hyperplane or null if no such part exists.
    • Method Detail

      • getMinus

        public T getMinus()
        Get the part of the object lying on the minus side of the splitting hyperplane or null if no such part exists.
        Returns:
        part of the object lying on the minus side of the splitting hyperplane
      • getPlus

        public T getPlus()
        Get the part of the object lying on the plus side of the splitting hyperplane or null if no such part exists.
        Returns:
        part of the object lying on the plus side of the splitting hyperplane
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object