Interface EncodeDirection
- All Known Implementing Classes:
WatershedEncoding
public interface EncodeDirection
An interface for encoding a 3D direction into an integer representation.
-
Method Summary
Modifier and TypeMethodDescriptionint
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 directiony
- the y-component of the directionz
- the z-component of the direction- Returns:
- an integer encoding of the direction
-