translate2 method

void translate2(
  1. List<double> transformedPts,
  2. Matrix4 outputMatrix
)

Post-translates to the specified points. Output matrix allows for caching objects.

@param transformedPts @return

Implementation

void translate2(final List<double> transformedPts, Matrix4 outputMatrix) {
  _matrixTouch.copyInto(outputMatrix);
  final double x = transformedPts[0] - offsetLeft();
  final double y = transformedPts[1] - offsetTop();
  Matrix4Utils.postTranslate(outputMatrix, -x, -y);
}