public static enum GridSpacing.GridType extends java.lang.Enum<GridSpacing.GridType>
Enum Constant and Description |
---|
ACOS |
COS |
LINEAR |
ONEMSQRT |
SQR |
SQRT |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Double> |
spacing(int n)
Return a list of "n" values between 0 and 1 (inclusive) using this grid spacing
type.
|
java.lang.String |
toString() |
static GridSpacing.GridType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GridSpacing.GridType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridSpacing.GridType LINEAR
public static final GridSpacing.GridType SQR
public static final GridSpacing.GridType ONEMSQRT
public static final GridSpacing.GridType ACOS
public static final GridSpacing.GridType COS
public static final GridSpacing.GridType SQRT
public static GridSpacing.GridType[] values()
for (GridSpacing.GridType c : GridSpacing.GridType.values()) System.out.println(c);
public static GridSpacing.GridType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<GridSpacing.GridType>
public java.util.List<java.lang.Double> spacing(int n)
n
- The number of points to include in the spacing.n
, with the spacing of this
GridType.