Camera2DD constructor

Camera2DD({
  1. StructPointer<Camera2DD>? op,
  2. Vector2D? offset,
  3. Vector2D? target,
  4. double rotation = 0,
  5. double zoom = 1,
})

Implementation

Camera2DD({
  super.op,
  Vector2D? offset,
  Vector2D? target,
  double rotation = 0,
  double zoom = 1,
}) :
  _offset = offset ?? .zero(),
  _target = target ?? .zero(),
  _rotation = rotation,
  _zoom = zoom;