copyWith method

Vec3 copyWith({
  1. double? x,
  2. double? y,
  3. double? z,
})

A copy of this value with the given members replaced.

Implementation

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