translate method

void translate(
  1. int tx,
  2. int ty
)

Translates the face object.

param tx Translation to apply to the face object alongside the x-axis. param ty Translation to apply to the face object alongside the y-axis. throws FaceException An error has occurred during Face Library execution.

Implementation

void translate(int tx, int ty) {
  var err = faceSDK.id3TrackedFace_Translate(_pHandle.value, tx, ty);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}