copyWith method

FreeCameraOrientation copyWith({
  1. double? x,
  2. double? y,
  3. double? z,
  4. double? w,
})

Returns a copy of this quaternion with the given components replaced.

The result must have a length of 1.

Implementation

FreeCameraOrientation copyWith({
  double? x,
  double? y,
  double? z,
  double? w,
}) => FreeCameraOrientation(
  x: x ?? this.x,
  y: y ?? this.y,
  z: z ?? this.z,
  w: w ?? this.w,
);