skew method

void skew(
  1. double skewX,
  2. double skewY
)

Applies a skew transformation (in radians) to the matrix.

Implementation

void skew(double skewX, double skewY) {
  var sinX = math.sin(skewX);
  var cosX = math.cos(skewX);
  var sinY = math.sin(skewY);
  var cosY = math.cos(skewY);
  setTo(
    a * cosY - b * sinX,
    a * sinY + b * cosX,
    c * cosY - d * sinX,
    c * sinY + d * cosX,
    tx * cosY - ty * sinX,
    tx * sinY + ty * cosX,
  );
}