public boolean inSet(Complex c) {
		Complex z = userSelectedPoint; // the Complex that was selected on the
		// fractal is used
		itrCount = 0;
		// this formula for each iteration will be used only when the Mandelbrot
		// Set boolean is true
		if (mandelbrot) {
			// while the answer to the formula is less than four, it will keep
			// on repeated
			while ((c.square().add(z).modulusSquared() < 4)
					&& (itrCount < maxIterations)) {
				c = c.square().add(z);
				itrCount++;
			}

		}
		// this formula for each iteration will be used only when the Tricorn
		// boolean is true
		else if (tricorn) {
			// while the answer to the formula is less than four, it will keep
			// on repeated
			while ((c.square().getConjugate().add(z).modulusSquared() < 4)
					&& (itrCount < maxIterations)) {
				c = c.square().getConjugate().add(z);
				itrCount++;
			}
		}
		// this formula for each iteration will be used only when the Burning
		// Ship boolean is true
		else if (burningShip) {
			// while the answer to the formula is less than four, it will keep
			// on repeated
			c = new Complex(c.getPosReal(), c.getPosImag()).square().add(z);
			itrCount = 0;
			while ((c.modulusSquared() < 4) && (itrCount < maxIterations)) {
				c = new Complex(c.getPosReal(), c.getPosImag()).square().add(z);
				itrCount++;
			}
		}
		return itrCount == maxIterations; // a boolean is returned if the
		// iteration count reached till the maximum iterations were reached
		// or not. If the two are equal, the value had diverged
	}