copyWith method

Camera copyWith({
  1. int? id,
  2. int? width,
  3. int? height,
  4. Vector3? position,
  5. Matrix3? rotation,
  6. double? fx,
  7. double? fy,
  8. double? znear,
  9. double? zfar,
  10. double? ndcYSign,
})

Creates a copy with selected fields changed.

Implementation

Camera copyWith({
  int? id,
  int? width,
  int? height,
  Vector3? position,
  Matrix3? rotation,
  double? fx,
  double? fy,
  double? znear,
  double? zfar,
  double? ndcYSign,
}) {
  return Camera(
    id: id ?? this.id,
    width: width ?? this.width,
    height: height ?? this.height,
    position: position ?? this.position,
    rotation: rotation ?? this.rotation,
    fx: fx ?? this.fx,
    fy: fy ?? this.fy,
    znear: znear ?? this.znear,
    zfar: zfar ?? this.zfar,
    ndcYSign: ndcYSign ?? this.ndcYSign,
  );
}