LOST 0.0.1
LOST: Open-source Star Tracker
Loading...
Searching...
No Matches
decimal.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STR_TO_DECIMAL(x)
#define DECIMAL(x)
#define DECIMAL_M_E   ((decimal) M_E) /* e */
#define DECIMAL_M_LOG2E   ((decimal) M_LOG2E) /* log_2 e */
#define DECIMAL_M_LOG10E   ((decimal) M_LOG10E) /* log_10 e */
#define DECIMAL_M_LN2   ((decimal) M_LN2) /* log_e 2 */
#define DECIMAL_M_LN10   ((decimal) M_LN10) /* log_e 10 */
#define DECIMAL_M_PI   ((decimal) M_PI) /* pi */
#define DECIMAL_M_PI_2   ((decimal) M_PI_2) /* pi/2 */
#define DECIMAL_M_PI_4   ((decimal) M_PI_4) /* pi/4 */
#define DECIMAL_M_1_PI   ((decimal) M_1_PI) /* 1/pi */
#define DECIMAL_M_2_PI   ((decimal) M_2_PI) /* 2/pi */
#define DECIMAL_M_2_SQRTPI   ((decimal) M_2_SQRTPI) /* 2/sqrt(pi) */
#define DECIMAL_M_SQRT2   ((decimal) M_SQRT2) /* sqrt(2) */
#define DECIMAL_M_SQRT1_2   ((decimal) M_SQRT1_2) /* 1/sqrt(2) */
#define DECIMAL_POW(base, power)
#define DECIMAL_SQRT(x)
#define DECIMAL_LOG(x)
#define DECIMAL_EXP(x)
#define DECIMAL_ERF(x)
#define DECIMAL_ROUND(x)
#define DECIMAL_CEIL(x)
#define DECIMAL_FLOOR(x)
#define DECIMAL_ABS(x)
#define DECIMAL_SIN(x)
#define DECIMAL_COS(x)
#define DECIMAL_TAN(x)
#define DECIMAL_ASIN(x)
#define DECIMAL_ACOS(x)
#define DECIMAL_ATAN(x)
#define DECIMAL_ATAN2(x, y)
#define DECIMAL_HYPOT(x, y)

Typedefs

typedef double decimal

Macro Definition Documentation

◆ DECIMAL

#define DECIMAL ( x)
Value:
((decimal) x)
double decimal
Definition decimal.hpp:8

Definition at line 18 of file decimal.hpp.

◆ DECIMAL_ABS

#define DECIMAL_ABS ( x)
Value:
((decimal) std::abs(x))

Definition at line 46 of file decimal.hpp.

◆ DECIMAL_ACOS

#define DECIMAL_ACOS ( x)
Value:
((decimal) std::acos(x))

Definition at line 53 of file decimal.hpp.

◆ DECIMAL_ASIN

#define DECIMAL_ASIN ( x)
Value:
((decimal) std::asin(x))

Definition at line 52 of file decimal.hpp.

◆ DECIMAL_ATAN

#define DECIMAL_ATAN ( x)
Value:
((decimal) std::atan(x))

Definition at line 54 of file decimal.hpp.

◆ DECIMAL_ATAN2

#define DECIMAL_ATAN2 ( x,
y )
Value:
((decimal) std::atan2(x,y))

Definition at line 55 of file decimal.hpp.

◆ DECIMAL_CEIL

#define DECIMAL_CEIL ( x)
Value:
((decimal) std::ceil(x))

Definition at line 44 of file decimal.hpp.

◆ DECIMAL_COS

#define DECIMAL_COS ( x)
Value:
((decimal) std::cos(x))

Definition at line 50 of file decimal.hpp.

◆ DECIMAL_ERF

#define DECIMAL_ERF ( x)
Value:
((decimal) std::erf(x))

Definition at line 40 of file decimal.hpp.

◆ DECIMAL_EXP

#define DECIMAL_EXP ( x)
Value:
((decimal) std::exp(x))

Definition at line 39 of file decimal.hpp.

◆ DECIMAL_FLOOR

#define DECIMAL_FLOOR ( x)
Value:
((decimal) std::floor(x))

Definition at line 45 of file decimal.hpp.

◆ DECIMAL_HYPOT

#define DECIMAL_HYPOT ( x,
y )
Value:
((decimal) std::hypot(x,y))

Definition at line 58 of file decimal.hpp.

◆ DECIMAL_LOG

#define DECIMAL_LOG ( x)
Value:
((decimal) std::log(x))

Definition at line 38 of file decimal.hpp.

◆ DECIMAL_M_1_PI

#define DECIMAL_M_1_PI   ((decimal) M_1_PI) /* 1/pi */

Definition at line 29 of file decimal.hpp.

◆ DECIMAL_M_2_PI

#define DECIMAL_M_2_PI   ((decimal) M_2_PI) /* 2/pi */

Definition at line 30 of file decimal.hpp.

◆ DECIMAL_M_2_SQRTPI

#define DECIMAL_M_2_SQRTPI   ((decimal) M_2_SQRTPI) /* 2/sqrt(pi) */

Definition at line 31 of file decimal.hpp.

◆ DECIMAL_M_E

#define DECIMAL_M_E   ((decimal) M_E) /* e */

Definition at line 21 of file decimal.hpp.

◆ DECIMAL_M_LN10

#define DECIMAL_M_LN10   ((decimal) M_LN10) /* log_e 10 */

Definition at line 25 of file decimal.hpp.

◆ DECIMAL_M_LN2

#define DECIMAL_M_LN2   ((decimal) M_LN2) /* log_e 2 */

Definition at line 24 of file decimal.hpp.

◆ DECIMAL_M_LOG10E

#define DECIMAL_M_LOG10E   ((decimal) M_LOG10E) /* log_10 e */

Definition at line 23 of file decimal.hpp.

◆ DECIMAL_M_LOG2E

#define DECIMAL_M_LOG2E   ((decimal) M_LOG2E) /* log_2 e */

Definition at line 22 of file decimal.hpp.

◆ DECIMAL_M_PI

#define DECIMAL_M_PI   ((decimal) M_PI) /* pi */

Definition at line 26 of file decimal.hpp.

◆ DECIMAL_M_PI_2

#define DECIMAL_M_PI_2   ((decimal) M_PI_2) /* pi/2 */

Definition at line 27 of file decimal.hpp.

◆ DECIMAL_M_PI_4

#define DECIMAL_M_PI_4   ((decimal) M_PI_4) /* pi/4 */

Definition at line 28 of file decimal.hpp.

◆ DECIMAL_M_SQRT1_2

#define DECIMAL_M_SQRT1_2   ((decimal) M_SQRT1_2) /* 1/sqrt(2) */

Definition at line 33 of file decimal.hpp.

◆ DECIMAL_M_SQRT2

#define DECIMAL_M_SQRT2   ((decimal) M_SQRT2) /* sqrt(2) */

Definition at line 32 of file decimal.hpp.

◆ DECIMAL_POW

#define DECIMAL_POW ( base,
power )
Value:
((decimal) std::pow(base, power))

Definition at line 36 of file decimal.hpp.

◆ DECIMAL_ROUND

#define DECIMAL_ROUND ( x)
Value:
((decimal) std::round(x))

Definition at line 43 of file decimal.hpp.

◆ DECIMAL_SIN

#define DECIMAL_SIN ( x)
Value:
((decimal) std::sin(x))

Definition at line 49 of file decimal.hpp.

◆ DECIMAL_SQRT

#define DECIMAL_SQRT ( x)
Value:
((decimal) std::sqrt(x))

Definition at line 37 of file decimal.hpp.

◆ DECIMAL_TAN

#define DECIMAL_TAN ( x)
Value:
((decimal) std::tan(x))

Definition at line 51 of file decimal.hpp.

◆ STR_TO_DECIMAL

#define STR_TO_DECIMAL ( x)
Value:
std::stod(x)

Definition at line 9 of file decimal.hpp.

Typedef Documentation

◆ decimal

typedef double decimal

Definition at line 8 of file decimal.hpp.