code: public static double rotatedWidth( double width , double c , double s )
  	{
  		return Math.abs(c)*width + Math.abs(s)*width;
  	}
docs: Computes the width of a square containment region that contains a rotated rectangle.
  
  @param width Size of the original rectangle.
  @param c Cosine(theta)
  @param s Sine(theta)
  @return Side length of the containment square.