The OpenD Programming Language

GuideToDoubleFunction

A callable struct that translates any value into a double

Members

Functions

opCall
auto opCall(T value, bool scale)

Call the function with a value

Variables

doubleConvert
double delegate(double) doubleConvert;

Function that governs translation from double to double (continuous to continuous)

scaleFunction
Nullable!(double delegate(double)) scaleFunction;

Additional scaling of the field (i.e. log10, polar coordinates)

stringConvert
double delegate(string) stringConvert;

Function that governs translation from string to double (discrete to continuous)

Meta