Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# TrackedFace.translate Method

Module: TrackedFace

## Definition

Translates the face object.

Python

    translate(self, tx: int, ty: int) -> None

Parameters

> `tx` int
> in Translation to apply to the face object alongside the x-axis.
> `ty` int
> in Translation to apply to the face object alongside the y-axis.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    void translate(int tx, int ty)

Parameters

> `tx` int
> in Translation to apply to the face object alongside the x-axis.
> `ty` int
> in Translation to apply to the face object alongside the y-axis.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public void Translate(int tx, int ty)

Parameters

> `tx` int
> in Translation to apply to the face object alongside the x-axis.
> `ty` int
> in Translation to apply to the face object alongside the y-axis.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public void translate(int tx, int ty) throws FaceException

Parameters

> `tx` int
> in Translation to apply to the face object alongside the x-axis.
> `ty` int
> in Translation to apply to the face object alongside the y-axis.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public func translate(tx: Int32, ty: Int32) throws

Parameters

> `tx` Int32
> in Translation to apply to the face object alongside the x-axis.
> `ty` Int32
> in Translation to apply to the face object alongside the y-axis.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3TrackedFace_Translate (
        ID3_TRACKED_FACE hTrackedFace,
        int tx,
        int ty)

Parameters

> `hTrackedFace` ID3_TRACKED_FACE
> in Handle to the TrackedFace object.
> `tx` int
> in Translation to apply to the face object alongside the x-axis.
> `ty` int
> in Translation to apply to the face object alongside the y-axis.

Returns

> `int`
> An error code.
> See id3FaceError file for the list of possible error codes.