copy method

  1. @override
OrthographicCamera copy(
  1. Object3D source, [
  2. bool? recursive
])
override

Copy the properties from the source camera into this one.

Implementation

@override
OrthographicCamera copy(Object3D source, [bool? recursive]) {
  super.copy(source, recursive);
  if (source is OrthographicCamera) {
    left = source.left;
    right = source.right;
    top = source.top;
    bottom = source.bottom;
    near = source.near;
    far = source.far;

    zoom = source.zoom;
    view = source.view == null ? null : json.decode(json.encode(source.view));
  }
  return this;
}