Skip to main content

OH_Drawing_MatrixCreateRotation

Function OH_Drawing_MatrixCreateRotation 

Source
pub unsafe extern "C" fn OH_Drawing_MatrixCreateRotation(
    deg: f32,
    x: f32,
    y: f32,
) -> *mut OH_Drawing_Matrix
Expand description

@brief Creates an OH_Drawing_Matrix with the rotation attribute. The matrix is obtained by rotating an identity matrix by a given degree around the rotation point (x, y).

@param deg Angle to rotate, in degrees. A positive value indicates a clockwise rotation, and a negative value indicates a counterclockwise rotation. @param x Coordinate point on the X axis. @param y Coordinate point on the Y axis. @return Returns the pointer to the OH_Drawing_Matrix object created. @since 12 @version 1.0