|
| double | ifPositive (const double x, const double y1, const double y2) |
| | Returns y1 or y2 depending on the value of x.
|
| |
| bool | doubleToBool (const double value) |
| | Converts a float point number to a boolean.
|
| |
| double | boolToDouble (const bool value) |
| | Converts a boolean value to a float point number.
|
| |
| double | onPositive (const double x) |
| | Returns 1.0 if x is positive, else returns 0.0.
|
| |
|
double | dxOnPositive (const double) |
| |
| double | onNegative (const double x) |
| | Returns 1.0 if x is negative, else returns 0.0.
|
| |
|
double | dxOnNegative (const double) |
| |
|
double | dxAbs (const double x) |
| |
|
double | d1Atan2L (const double y, const double x) |
| |
|
double | d2Atan2L (const double y, const double x) |
| | Derivative of ATAN2L with respect to x.
|
| |
| double | sign (const double x) |
| | Returns the sign of a double (-1.0 or +1.0)
|
| |
| double | dtIfPositive (const double x, const double, const double) |
| | Derivative of IfPositive with respect to y1.
|
| |
| double | dfIfPositive (const double x, const double, const double) |
| | Derivative of IfPositive with respect to y1.
|
| |
| double | limit2 (const double x, const double, const double xmin, const double xmax) |
| | Overloads double hopsan::limit() to also include sx (derivative of x) as input.
|
| |
| double | lowerLimit (const double value, const double limit) |
| | Apply a lower limit to a value.
|
| |
| double | upperLimit (const double value, const double limit) |
| | Apply a upper limit to a value.
|
| |
| double | deg2rad (const double deg) |
| | Converts an angle in degrees to radians.
|
| |
| double | rad2deg (const double rad) |
| | Converts an angle in radians to degrees.
|
| |
| bool | equalSignsBool (const double x, const double y) |
| | Check if input variables have the same sign.
|
| |
| double | equalSigns (const double x, const double y) |
| | Check if input variables have the same sign.
|
| |
| void HOPSANCORE_DLLAPI | limitValue (double &rValue, double min, double max) |
| | Limits a value so it is between min and max.
|
| |
| bool HOPSANCORE_DLLAPI | fuzzyEqual (const double x, const double y, const double epsilon=0.00001) |
| | checks if two double variables are equal with a tolerance
|
| |
|
double HOPSANCORE_DLLAPI | signedSquareL (const double x, const double x0) |
| |
|
double HOPSANCORE_DLLAPI | dxSignedSquareL (const double x, const double x0) |
| |
|
double HOPSANCORE_DLLAPI | squareAbsL (const double x, const double x0) |
| |
|
double HOPSANCORE_DLLAPI | dxSquareAbsL (const double x, const double x0) |
| |
|
double HOPSANCORE_DLLAPI | Atan2L (const double y, const double x) |
| | Safe variant of atan2.
|
| |
|
double HOPSANCORE_DLLAPI | ArcSinL (const double x) |
| | Safe variant of asin.
|
| |
|
double HOPSANCORE_DLLAPI | dxArcSinL (const double x) |
| | derivative of AsinL
|
| |
|
double HOPSANCORE_DLLAPI | diffAngle (const double fi1, const double fi2) |
| | difference between two angles, fi1-fi2
|
| |
|
double HOPSANCORE_DLLAPI | CLift (const double alpha, const double CLalpha, const double ap, const double an, const double expclp, const double expcln) |
| | Lift coefficient for aircraft model.
|
| |
|
double HOPSANCORE_DLLAPI | CDragInd (const double alpha, const double AR, const double e, const double CLalpha, const double ap, const double an, const double expclp, const double expcln) |
| | Induced drag coefficient for aircraft model.
|
| |
|
double HOPSANCORE_DLLAPI | CMoment (double alpha, const double Cm0, const double Cmfs, const double ap, const double an, const double expclp, const double expcln) |
| | Moment coefficient for aircraft model.
|
| |
| double HOPSANCORE_DLLAPI | segare (const double x, const double d) |
| | Segment area, used to calculate valve openings with circular holes.
|
| |
| double HOPSANCORE_DLLAPI | dxSegare (const double x, const double d) |
| | Segment area, used to calculate valve openings with circular holes.
|
| |
| double HOPSANCORE_DLLAPI | limit (const double x, const double xmin, const double xmax) |
| | Overloads void hopsan::limitValue() with a return value.
|
| |
| double HOPSANCORE_DLLAPI | lowLimit (const double x, const double xmin) |
| | Limits a value to a lower limit.
|
| |
| double HOPSANCORE_DLLAPI | dxLimit (const double x, const double xmin, const double xmax) |
| | Sets the derivative of x to zero if x is outside of limits.
|
| |
| double HOPSANCORE_DLLAPI | dxLowLimit (const double x, const double xmin) |
| | Sets the derivative of x to zero if x is outside of limits.
|
| |
| double HOPSANCORE_DLLAPI | dxLowLimit2 (const double x, const double sx, const double xmin) |
| | Sets the derivative of x to zero if x is outside of limits.
|
| |
| double HOPSANCORE_DLLAPI | dxLimit2 (const double x, const double sx, const double xmin, const double xmax) |
| | Limits the derivative of x when x is outside of its limits.Returns 1.0 if x is within borders, or if x is outside borders but derivative has opposite sign (so that x can only move back to the limited range).
|
| |