OrthographicProjection constructor

OrthographicProjection({
  1. (double, double)? center,
  2. double scale = 1,
  3. Point? translate,
  4. (double, double, double)? rotate,
})

Creates an orthographic projection.

Implementation

OrthographicProjection({
  (double, double)? center,
  double scale = 1,
  Point? translate,
  (double, double, double)? rotate,
}) {
  if (center != null) this.center = center;
  this.scale = scale;
  if (translate != null) this.translate = translate;
  if (rotate != null) {
    _rotate0 = rotate.$1;
    _rotate1 = rotate.$2;
    _rotate2 = rotate.$3;
  }
}