public class ConstantLookup extends Object
The following constants are recognized:
M_E The base of natural logarithms (e) M_PI Pi M_PI_2 Pi / 2 M_PI_4 Pi / 4 M_SQRT2 Squre root of 2In addition, any of the following can be used for
Double.NaN
M_NaN M_NAN NaN NAN
Constructor and Description |
---|
ConstantLookup() |
Modifier and Type | Method and Description |
---|---|
static double |
getValue(String name)
Gets the value of a named constant.
|
static boolean |
isDefined(String name)
Checks if a constant is recognized by Jiffle.
|
public static boolean isDefined(String name)
name
- the nametrue
if the constant is recognized;
false
otherwisepublic static double getValue(String name)
name
- the constantIllegalArgumentException
- if name
is not recognizedCopyright © 2006–2018 GeoSolutions. All rights reserved.