public class WaypointPatterns extends Object
Constructor and Description |
---|
WaypointPatterns() |
Modifier and Type | Method and Description |
---|---|
static double |
expandingSquareLegLength(int legNumber,
double trackSpacing)
Computes the length of a single leg of an expanding square pattern
¶m int legNumber number of the leg in the pattern
¶m double trackSpacing between layers of the expanding square
&return double
|
static int |
expandingSquareLegSegments(int legNumber)
Computes the number of track spacing length segments in a single expanding square leg
¶m int legNumber number of the leg in the pattern
&return int
|
static double |
expandingSquareLength(int numLegs,
double trackSpacing)
Recursively computes the total length of an expanding square pattern
¶m ind numLegs number of legs in the pattern
¶m double trackSpacing between layers of the expanding square
&return double
|
static int |
expandingSquareSegments(int numLegs)
Recursively computes the size of an expanding square pattern as a multiple of
the track spacing
¶m int numLegs number of segs in the square pattern
|
public static int expandingSquareLegSegments(int legNumber)
public static int expandingSquareSegments(int numLegs)
public static double expandingSquareLegLength(int legNumber, double trackSpacing)
public static double expandingSquareLength(int numLegs, double trackSpacing)