static void printAngle(double theta, PrintStream ps, String posPrefix,
			String negPrefix) {
		int pd, pm;

		double phi = RtoD(Math.abs(theta));

		pd = (int) phi;
		phi = 60.0 * (phi - pd);
		pm = (int) phi;
		phi = 60.0 * (phi - pm);

		if (theta < 0.0) {
			ps.print((negPrefix == null) ? "-" : negPrefix);
		} else {
			ps.print((posPrefix == null) ? "+" : posPrefix);
		}

		ps.print(pd + "\u00b0 " + pm + "\' " + angleFormat.format(phi) + "\"");
	}