#include <MathFunctions.h>
Inheritance diagram for MathFunctions:
Input symbols | |
double | distanceTo () |
calculates the decimal input function "distance-to" | |
double | angleTo () |
calculates the decimal input function "angle-to" | |
double | getSgn () |
calculates the decimal input function "sgn" | |
double | getMin () |
calculates the decimal input function "min" | |
double | getMax () |
calculates the decimal input function "max" | |
double | getAbs () |
calculates the decimal input function "abs" | |
double | getRandom () |
calculates the decimal input function "random" | |
double | getSin () |
calculates the decimal input function "sin" | |
double | getCos () |
calculates the decimal input function "cos" | |
double | getNormalize () |
calculates the decimal input function "normalize" | |
double | getFrozenValue () |
calculates the value for the symbol "freeze.value" | |
double | isInInterval () |
The function returns 1 if the value is in the interval between a and b (order doesn't matter). | |
double | distanceToX |
The parameter "distance-to.x" of the function "distance-to". | |
double | distanceToY |
The parameter "distance-to.y" of the function "distance-to". | |
double | angleToX |
The parameter "angle-to.x" of the function "angle-to". | |
double | angleToY |
The parameter "angle-to.y" of the function "angle-to". | |
double | normalizeAngle |
The parameter "normalize.angle" of the function "normalize". | |
double | sgnValue |
The parameter "sgn.value" of the function "sgn". | |
double | absValue |
The parameter "abs.value" of the function "abs". | |
double | min0Value |
The parameter "min0.value" of the function "min". | |
double | min1Value |
The parameter "min1.value" of the function "min". | |
double | max0Value |
The parameter "max.value0" of the function "max". | |
double | max1Value |
The parameter "max.value1" of the function "max". | |
double | alphaValue |
The parameter "*.alpha" of the function "sin" and "cos". | |
double | valueToFreeze |
The parameter "freeze.value" of the function "freeze". | |
double | isInIntervalValue |
calculates the decimal input function "distance-to" | |
double | isInIntervalA |
calculates the decimal input function "distance-to" | |
double | isInIntervalB |
calculates the decimal input function "distance-to" | |
int | unFreezeValue |
calculates the decimal input function "distance-to" | |
double | frozenValue |
calculates the decimal input function "distance-to" | |
Public Member Functions | |
MathFunctions (const BehaviorControlInterfaces &interfaces) | |
void | registerSymbols (Xabsl2Engine &engine) |
registers the symbols at an engine | |
void | update () |
updates the symbols |
Definition at line 20 of file MathFunctions.h.
|
Definition at line 12 of file MathFunctions.cpp. |
|
registers the symbols at an engine
Definition at line 18 of file MathFunctions.cpp. References absValue, alphaValue, angleTo(), angleToX, angleToY, distanceTo(), distanceToX, distanceToY, getAbs(), getCos(), getFrozenValue(), getMax(), getMin(), getNormalize(), getRandom(), getSgn(), getSin(), isInInterval(), isInIntervalA, isInIntervalB, isInIntervalValue, max0Value, max1Value, min0Value, min1Value, normalizeAngle, Xabsl2Symbols::registerDecimalInputFunction(), Xabsl2Symbols::registerDecimalInputFunctionParameter(), Xabsl2Symbols::registerDecimalInputSymbol(), Xabsl2Symbols::registerEnumeratedOutputSymbol(), Xabsl2Symbols::registerEnumeratedOutputSymbolEnumElement(), sgnValue, unFreezeValue, and valueToFreeze. Referenced by GT2004BehaviorControl::registerSymbolsAndBasicBehaviors(). |
Here is the call graph for this function:
|
updates the symbols
Definition at line 89 of file MathFunctions.cpp. |
|
calculates the decimal input function "distance-to"
Definition at line 93 of file MathFunctions.cpp. References Geometry::distanceTo(), distanceToX, and distanceToY. Referenced by registerSymbols(). |
Here is the call graph for this function:
|
calculates the decimal input function "angle-to"
Definition at line 98 of file MathFunctions.cpp. References Geometry::angleTo(), angleToX, angleToY, and toDegrees(). Referenced by registerSymbols(). |
Here is the call graph for this function:
|
calculates the decimal input function "sgn"
Definition at line 103 of file MathFunctions.cpp. References sgnValue. Referenced by registerSymbols(). |
|
calculates the decimal input function "min"
Definition at line 113 of file MathFunctions.cpp. References min0Value, and min1Value. Referenced by registerSymbols(). |
|
calculates the decimal input function "max"
Definition at line 120 of file MathFunctions.cpp. References max0Value, and max1Value. Referenced by registerSymbols(). |
|
calculates the decimal input function "abs"
Definition at line 108 of file MathFunctions.cpp. References absValue. Referenced by registerSymbols(). |
|
calculates the decimal input function "random"
Definition at line 137 of file MathFunctions.cpp. Referenced by registerSymbols(). |
|
calculates the decimal input function "sin"
Definition at line 127 of file MathFunctions.cpp. References alphaValue, and fromDegrees(). Referenced by registerSymbols(). |
Here is the call graph for this function:
|
calculates the decimal input function "cos"
Definition at line 132 of file MathFunctions.cpp. References alphaValue, and fromDegrees(). Referenced by registerSymbols(). |
Here is the call graph for this function:
|
calculates the decimal input function "normalize"
Definition at line 142 of file MathFunctions.cpp. References fromDegrees(), normalize(), normalizeAngle, and toDegrees(). Referenced by registerSymbols(). |
Here is the call graph for this function:
|
calculates the value for the symbol "freeze.value"
Definition at line 147 of file MathFunctions.cpp. References frozenValue, unFreezeValue, and valueToFreeze. Referenced by registerSymbols(). |
|
The function returns 1 if the value is in the interval between a and b (order doesn't matter).
Definition at line 157 of file MathFunctions.cpp. References isInIntervalA, isInIntervalB, and isInIntervalValue. Referenced by registerSymbols(). |
|
The parameter "distance-to.x" of the function "distance-to".
Definition at line 41 of file MathFunctions.h. Referenced by distanceTo(), and registerSymbols(). |
|
The parameter "distance-to.y" of the function "distance-to".
Definition at line 44 of file MathFunctions.h. Referenced by distanceTo(), and registerSymbols(). |
|
The parameter "angle-to.x" of the function "angle-to".
Definition at line 50 of file MathFunctions.h. Referenced by angleTo(), and registerSymbols(). |
|
The parameter "angle-to.y" of the function "angle-to".
Definition at line 53 of file MathFunctions.h. Referenced by angleTo(), and registerSymbols(). |
|
The parameter "normalize.angle" of the function "normalize".
Definition at line 56 of file MathFunctions.h. Referenced by getNormalize(), and registerSymbols(). |
|
The parameter "sgn.value" of the function "sgn".
Definition at line 83 of file MathFunctions.h. Referenced by getSgn(), and registerSymbols(). |
|
The parameter "abs.value" of the function "abs".
Definition at line 86 of file MathFunctions.h. Referenced by getAbs(), and registerSymbols(). |
|
The parameter "min0.value" of the function "min".
Definition at line 89 of file MathFunctions.h. Referenced by getMin(), and registerSymbols(). |
|
The parameter "min1.value" of the function "min".
Definition at line 92 of file MathFunctions.h. Referenced by getMin(), and registerSymbols(). |
|
The parameter "max.value0" of the function "max".
Definition at line 95 of file MathFunctions.h. Referenced by getMax(), and registerSymbols(). |
|
The parameter "max.value1" of the function "max".
Definition at line 98 of file MathFunctions.h. Referenced by getMax(), and registerSymbols(). |
|
The parameter "*.alpha" of the function "sin" and "cos".
Definition at line 101 of file MathFunctions.h. Referenced by getCos(), getSin(), and registerSymbols(). |
|
The parameter "freeze.value" of the function "freeze".
Definition at line 107 of file MathFunctions.h. Referenced by getFrozenValue(), and registerSymbols(). |
|
calculates the decimal input function "distance-to"
Definition at line 112 of file MathFunctions.h. Referenced by isInInterval(), and registerSymbols(). |
|
calculates the decimal input function "distance-to"
Definition at line 113 of file MathFunctions.h. Referenced by isInInterval(), and registerSymbols(). |
|
calculates the decimal input function "distance-to"
Definition at line 114 of file MathFunctions.h. Referenced by isInInterval(), and registerSymbols(). |
|
calculates the decimal input function "distance-to"
Definition at line 119 of file MathFunctions.h. Referenced by getFrozenValue(), and registerSymbols(). |
|
calculates the decimal input function "distance-to"
Definition at line 122 of file MathFunctions.h. Referenced by getFrozenValue(). |