Serializable
, Comparable<CurveFunctionFunction>
public enum CurveFunctionFunction extends Enum<CurveFunctionFunction>
Enum Constant | Description |
---|---|
COSINE |
|
SAWTOOTH |
|
SINE |
|
SQUARE |
|
TANGENT |
|
TRIANGLE |
Modifier and Type | Method | Description |
---|---|---|
Function<Double,Double> |
getFunction() |
Returns the according trigonometric function.
|
static CurveFunctionFunction |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static CurveFunctionFunction[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CurveFunctionFunction SINE
public static final CurveFunctionFunction COSINE
public static final CurveFunctionFunction TANGENT
public static final CurveFunctionFunction SAWTOOTH
public static final CurveFunctionFunction SQUARE
public static final CurveFunctionFunction TRIANGLE
public static CurveFunctionFunction[] values()
for (CurveFunctionFunction c : CurveFunctionFunction.values()) System.out.println(c);
public static CurveFunctionFunction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021. All rights reserved.