Skip to main content

OH_Drawing_MatrixRotate

Function OH_Drawing_MatrixRotate 

Source
pub unsafe extern "C" fn OH_Drawing_MatrixRotate(
    matrix: *mut OH_Drawing_Matrix,
    degree: f32,
    px: f32,
    py: f32,
)
Expand description

@brief Sets this matrix as an identity matrix and rotates it by a given degree around the rotation point (px, py). This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If matrix is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param matrix Pointer to the {@link OH_Drawing_Matrix} object. @param degree Angle to rotate, in degrees. A positive value indicates a clockwise rotation, and a negative value indicates a counterclockwise rotation. @param px Coordinate point on the X axis. @param py Coordinate point on the Y axis. @since 12 @version 1.0