setSinCos method

void setSinCos(
  1. double sin,
  2. double cos, {
  3. double px = 0,
  4. double py = 0,
})

Sets Matrix to rotate by sinValue and cosValue, about a pivot point at (px, py). The pivot point is unchanged when mapped with Matrix.

Vector (sinValue, cosValue) describes the angle of rotation relative to (0, 1). Vector length specifies scale.

@param sinValue rotation vector x-axis component @param cosValue rotation vector y-axis component @param pxpivot x-axis @param pypivot y-axis

Implementation

void setSinCos(double sin, double cos, {double px = 0, double py = 0}) =>
    c.mnn_cv_matrix_set_sincos(ptr, sin, cos, px, py);