pose method

double pose(
  1. int euler
)

Returns the face's pose. That is, the rotations around either the X, Y or Z axis (the positions in 3-dimensional Euclidean space).

See: https://developer.android.com/reference/android/media/FaceDetector.Face#pose(int)

Implementation

double pose(final int euler) {
  switch (euler) {
    case EULER_X:
      return poseX;
    case EULER_Y:
      return poseY;
    case EULER_Z:
      return poseZ;
    default:
      assert(false, "unreachable");
      return null; // unreachable
  }
}