public boolean inSet(Complex c) {
		Complex z = new Complex(0, 0);
		itrCount = 0;
		// this formula for each iteration will be used only when the Mandelbrot
		// Set radio button has been selected
		if (mand) {
			// while the answer to the formula is less than four, it will keep
			// on repeated
			while ((z.square().add(c).modulusSquared() < 4)
					&& (itrCount < maxIterations)) {
				z = z.square().add(c);
				itrCount++;
			}
		}
		// this formula for each iteration will be used only when the Tricorn
		// radio button has been selected
		else if (tri) {
			// while the answer to the formula is less than four, it will keep
			// on repeated
			while ((z.square().getConjugate().add(c).modulusSquared() < 4)
					&& (itrCount < maxIterations)) {
				z = z.square().getConjugate().add(c);
				itrCount++;
			}
		}
		// this formula for each iteration will be used only when the Burning
		// Ship radio button has been selected
		else if (burns) {
			// while the answer to the formula is less than four, it will keep
			// on repeated
			z = new Complex(z.getRealPart(), z.getPosImag()).square().add(c);
			itrCount = 0;
			while ((z.modulusSquared() < 4) && (itrCount < maxIterations)) {
				z = new Complex(z.getPosReal(), z.getPosImag()).square().add(c);
				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
	}