// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
using System.Runtime.CompilerServices;
namespace SixLabors.ImageSharp;
///
/// A vector with 4 values of type .
///
internal struct ComplexVector4
{
///
/// The real part of the complex vector
///
public Vector4 Real;
///
/// The imaginary part of the complex number
///
public Vector4 Imaginary;
///
/// Performs a weighted sum on the current instance according to the given parameters
///
/// The 'a' parameter, for the real component
/// The 'b' parameter, for the imaginary component
/// The resulting value
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Vector4 WeightedSum(float a, float b) => (this.Real * a) + (this.Imaginary * b);
}