All Known Implementing Classes:
WatershedEncoding

public interface EncodeDirection
An interface for encoding a 3D direction into an integer representation.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    encodeDirection(int x, int y, int z)
    Encodes a 3D direction into an integer representation.
  • Method Details

    • encodeDirection

      int encodeDirection(int x, int y, int z)
      Encodes a 3D direction into an integer representation.
      Parameters:
      x - the x-component of the direction
      y - the y-component of the direction
      z - the z-component of the direction
      Returns:
      an integer encoding of the direction