Spiral2D Demo

What Is It

This demos the com.pump.geom.Spiral2D shape.

How To Use It

You can construct a spiral by calling:

Shape spiral = Spiral2D(centerX, centerY, coilGap,
    coils, angularOffset, coilOffset, isClockwise)

This demo uses some static helper methods in Spiral2D that let you define a spiral by its starting and ending coordinates. The static helper methods are:

public static Spiral2D createWithFixedCoilGap(
    Point2D center, Point2D end, double coilGap);

public static Spiral2D createWithFixedCoilCount(
    Point2D center, Point2D end, double numCoils);

How It Works

This relies on two other classes: