/** * Multiplies the double components of another complex with this one. * * @param x The x (real) component of the complex to multiply with * @param y The y (imaginary) component of the complex to multiply with * @return A new complex, which is the product of both */ public Complexf mul(double x, double y) { return mul((float) x, (float) y); }
/** * Multiplies the components of this complex by a double scalar. * * @param a The multiplication scalar * @return A new complex, which has each component multiplied by the scalar */ public Complexf mul(double a) { return mul((float) a); }
/** * Multiplies the components of this complex by a double scalar. * * @param a The multiplication scalar * @return A new complex, which has each component multiplied by the scalar */ public Complexf mul(double a) { return mul((float) a); }
/** * Multiplies another complex with this one. * * @param c The complex to multiply with * @return A new complex, which is the product of both */ public Complexf mul(Complexf c) { return mul(c.x, c.y); }
/** * Multiplies the double components of another complex with this one. * * @param x The x (real) component of the complex to multiply with * @param y The y (imaginary) component of the complex to multiply with * @return A new complex, which is the product of both */ public Complexf mul(double x, double y) { return mul((float) x, (float) y); }
/** * Multiplies another complex with this one. * * @param c The complex to multiply with * @return A new complex, which is the product of both */ public Complexf mul(Complexf c) { return mul(c.x, c.y); }