setCamera method

void setCamera(
  1. double x,
  2. double y,
  3. double s
)

Sets the transform's center to the given x and y coordinates, and using the given scale.

Implementation

void setCamera(double x, double y, double s) {
  center.setValues(x, y);
  scale = s;
}