A copy of this value with the given members replaced.
Vec3 copyWith({double? x, double? y, double? z}) => Vec3(x: x ?? this.x, y: y ?? this.y, z: z ?? this.z);