All Implemented Interfaces:
ResettableMask, Resettable, Mask
Direct Known Subclasses:
ExtremaMask, ROCAngleMask

public class AngleMask extends AbstractExtentMask implements ResettableMask
  • Field Details

    • ADJACENT_MOD

      protected static double ADJACENT_MOD
    • DIAGONAL_MOD

      protected static double DIAGONAL_MOD
    • mask

      protected final CachedMask mask
    • max

      protected final double max
    • min

      protected final double min
    • overlay

      protected final boolean overlay
    • checkFirst

      protected final boolean checkFirst
    • maxY

      protected final int maxY
    • minY

      protected final int minY
    • distance

      protected final int distance
    • cacheBotX

      protected transient int cacheBotX
    • cacheBotZ

      protected transient int cacheBotZ
    • cacheHeights

      protected transient short[] cacheHeights
    • lastY

      protected transient int lastY
    • lastX

      protected transient int lastX
    • lastZ

      protected transient int lastZ
    • lastValue

      protected transient boolean lastValue
  • Constructor Details

    • AngleMask

      public AngleMask(Extent extent, double min, double max, boolean overlay, int distance)
  • Method Details

    • reset

      public void reset()
      Specified by:
      reset in interface Resettable
      Specified by:
      reset in interface ResettableMask
    • getHeight

      protected int getHeight(Extent extent, int x, int y, int z)
    • testSlope

      protected boolean testSlope(Extent extent, int x, int y, int z)
    • test

      public boolean test(BlockVector3 vector)
      Description copied from interface: Mask
      Returns true if the criteria is met.
      Specified by:
      test in interface Mask
      Parameters:
      vector - the vector to test
      Returns:
      true if the criteria is met
    • test

      public boolean test(Extent extent, BlockVector3 vector)
      Specified by:
      test in class AbstractExtentMask
    • copy

      public Mask copy()
      Description copied from interface: Mask
      Returns a copy of the mask. Usually for multi-threaded operation
      Specified by:
      copy in interface Mask
      Returns:
      a clone of the mask