transformImpl method
Implementation
Point transformImpl(Point point, int height, int width, int numRotation) {
if (numRotation == 0) {
return point;
} else if (numRotation == 1) {
return Point(point.y, width - point.x);
} else if (numRotation == 2) {
return Point(width - point.x, height - point.y);
} else {
// numRotation == 3
return Point(height - point.y, point.x);
}
}