public static final class Term.ConstD extends Term.Const
2.97665
or
1.4e-12
.Term.Add, Term.AndB, Term.AndI, Term.Assign, Term.Binary, Term.BinaryB, Term.BinaryI, Term.BinaryN, Term.Call, Term.Cond, Term.Const, Term.ConstB, Term.ConstD, Term.ConstI, Term.ConstS, Term.Div, Term.EqB, Term.EqD, Term.EqI, Term.GeD, Term.GeI, Term.GtD, Term.GtI, Term.LeD, Term.LeI, Term.LtD, Term.LtI, Term.Mod, Term.Mul, Term.Neg, Term.NEqB, Term.NEqD, Term.NEqI, Term.NotB, Term.NotI, Term.Op, Term.OrB, Term.OrI, Term.Ref, Term.Sub, Term.Unary, Term.UnaryB, Term.UnaryI, Term.UnaryN, Term.XOrI
Modifier and Type | Field and Description |
---|---|
static Term.ConstD |
E |
static Term.ConstD |
HALF |
static Term.ConstD |
NAN |
static Term.ConstD |
ONE |
static Term.ConstD |
PI |
static Term.ConstD |
TWO |
static Term.ConstD |
ZERO |
Constructor and Description |
---|
ConstD(double value) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(TermVisitor<T> visitor)
Visitor support.
|
static boolean |
eq(double v1,
double v2)
Special comparison only valid for numbers whose exponent is -1 to +1.
|
int |
getRetType()
Gets the term's "natural" return type.
|
double |
getValue() |
static Term.ConstD |
lookup(double value) |
protected boolean |
toB() |
protected double |
toD() |
protected int |
toI() |
protected String |
toS() |
String |
toString()
Returns a string representation of this term which
can be used for debugging.
|
compare, evalB, evalD, evalI, evalS, isConst, pre
public static final Term.ConstD NAN
public static final Term.ConstD ZERO
public static final Term.ConstD ONE
public static final Term.ConstD TWO
public static final Term.ConstD HALF
public static final Term.ConstD PI
public static final Term.ConstD E
public static Term.ConstD lookup(double value)
public double getValue()
public int getRetType()
Term
getRetType
in class Term
TYPE_
X constants
defined in this class.protected boolean toB()
toB
in class Term.Const
protected int toI()
toI
in class Term.Const
protected double toD()
toD
in class Term.Const
protected String toS()
toS
in class Term.Const
public String toString()
Term
public <T> T accept(TermVisitor<T> visitor)
Term
public static boolean eq(double v1, double v2)
Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.