Your preferences have been saved!
» Returns a dimension where width and height are inside the - import java.awt.Dimension; public class ImageUtil {          /**      * returns a dimension where width and height are inside the bounds of the      * maxWidth and maxHeight parameters<br>      * and the aspect ratio is the same as sourceWidth and sourceHeight.      *       * @param maxWidth      *            the maximum width of the target dimension... 05 Feb 12 » Generates n logarithmically-spaced points between d1 and d2 using the - import java.util.Arrays; public class Util{     /**      * generates n logarithmically-spaced points between d1 and d2 using the      * provided base.      *       * @param d1 The min value      * @param d2 The max value      * @param n The number of points to generated      * @param base the logarithmic base to use... 05 Feb 12 » An undirected graph that keeps track of connected components (groups). - import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Queue; import java.util.Set; /**... 05 Feb 12 » A class to represent a latitude and longitude - import java.text.DecimalFormat; /**  * A class to represent a latitude and longitude  */ public class Coordinate implements Comparable<Coordinate>{   // declare private class level variables   private float latitude;   private float longitude;   private DecimalFormat format;   ... 05 Feb 12 » Fast trigonometric operations - public class Trig {   /**    * I'm sick of casting to float    */   public static final float PI = (float) Math.PI;   /**    * I'm also sick of multiplying by two    */   public static final float TWO_PI = 2 * PI;   /**... 05 Feb 12 » This is a Polygon that allows the user to flip - import java.awt.Polygon; import java.lang.reflect.Array; /**  * This is a Polygon that allows the user to flip and swap the points along it's  * axis. Flipping occures along the 0 line on the axis, so if you flip x it  * becomes -x.  *  * @author Joseph Lenton  */ public class FlipPolygon extends Polygon... 05 Feb 12 » Geometry Utilities - import static java.lang.Math.PI; import static java.lang.Math.abs; import static java.lang.Math.atan2; import static java.lang.Math.sqrt; import static java.lang.Math.toDegrees; import java.awt.geom.Arc2D; import java.awt.geom.Line2D; import java.awt.geom.Point2D; import java.util.Vector; /**... 05 Feb 12 » Circle shape - import java.util.ArrayList; import java.util.List; public class Circle {   private Position center;   private int radius;   public Circle (Position p, int radius){     this.center = p;     this.radius = radius;   }   ... 05 Feb 12 » Quaternion - import java.io.Serializable; import java.io.Serializable; public final class Quaternion implements Serializable {   private static final long serialVersionUID = 1L;      /**     * Vector part    */   public final Vector3 v = new Vector3(1,0,0);   /**... 05 Feb 12 » Implementation of the 4 dimensional vector. - public class Vector4f implements Cloneable {   /** x component */   public float x;   /** y component */   public float y;   /** z component */   public float z;   /** w component */   public float w;   /**... 05 Feb 12