CanvasViewportTransform constructor

CanvasViewportTransform(
  1. Vector2 extents,
  2. Vector2 center
)

Constructs a new viewport transform with the default scale.

Implementation

CanvasViewportTransform(Vector2 extents, Vector2 center)
    : super(extents, center, defaultDrawingScale) {
  yFlip = true;
}