transformDeformVertices method

void transformDeformVertices(
  1. Mat2D wt
)

Implementation

void transformDeformVertices(Mat2D wt) {
  if (_animationDeformedVertices == null) {
    return;
  }

  Float32List? fv = _animationDeformedVertices;

  int vidx = 0;
  for (int j = 0; j < _vertexCount; j++) {
    double x = fv![vidx];
    double y = fv[vidx + 1];

    fv[vidx] = wt[0] * x + wt[2] * y + wt[4];
    fv[vidx + 1] = wt[1] * x + wt[3] * y + wt[5];

    vidx += 2;
  }
}