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

# TrackedFace.rotate Method

Module: TrackedFace

## Definition

Rotates the face object by a given angle in degrees from a given center.

Python

    rotate(self, angle: int, center: Point) -> None

Parameters

> `angle` int
> in Angle of the rotation to apply to the face object.
> `center` Point
> in Center of the rotation to apply to the face object.

Exceptions

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

Dart

    void rotate(int angle, Point center)

Parameters

> `angle` int
> in Angle of the rotation to apply to the face object.
> `center` Point
> in Center of the rotation to apply to the face object.

Exceptions

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

C#

    public void Rotate(int angle, Point center)

Parameters

> `angle` int
> in Angle of the rotation to apply to the face object.
> `center` Point
> in Center of the rotation to apply to the face object.

Exceptions

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

Java

    public void rotate(int angle, Point center) throws FaceException

Parameters

> `angle` int
> in Angle of the rotation to apply to the face object.
> `center` Point
> in Center of the rotation to apply to the face object.

Exceptions

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

Swift

    public func rotate(angle: Int32, center: Point) throws

Parameters

> `angle` Int32
> in Angle of the rotation to apply to the face object.
> `center` Point
> in Center of the rotation to apply to the face object.

Exceptions

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

C

    int id3TrackedFace_Rotate (
        ID3_TRACKED_FACE hTrackedFace,
        int angle,
        const id3FacePoint * sCenter)

Parameters

> `hTrackedFace` ID3_TRACKED_FACE
> in Handle to the TrackedFace object.
> `angle` int
> in Angle of the rotation to apply to the face object.
> `sCenter` const id3FacePoint *
> in Center of the rotation to apply to the face object.

Returns

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