copyWith method
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,
);
}