Interface Complex.ComplexConstructor

  • Enclosing class:
    Complex
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    private static interface Complex.ComplexConstructor
    Define a constructor for a Complex. This is used in functions that implement trigonomic identities.
    • Method Detail

      • create

        Complex create​(double real,
                       double imaginary)
        Create a complex number given the real and imaginary parts.
        Parameters:
        real - Real part.
        imaginary - Imaginary part.
        Returns:
        Complex object.