applyMatrix3 method

Vector2 applyMatrix3(
  1. Matrix3 m
)

Implementation

Vector2 applyMatrix3(Matrix3 m) {
  var x = this.x;
  var y = this.y;
  var e = m.elements;

  this.x = e[0] * x + e[3] * y + e[6];
  this.y = e[1] * x + e[4] * y + e[7];

  return this;
}