145 float minimum = 0.0f;
148 TEST_ASSERT_EQUAL(1.0f, minimum);
151 TEST_ASSERT_EQUAL(1.0f, minimum);
154 TEST_ASSERT_EQUAL(2.0f, minimum);
157 TEST_ASSERT_EQUAL(-3.0f, minimum);
160 TEST_ASSERT_EQUAL(-3.0f, minimum);
164 uint8_t value1 = 42u;
165 uint8_t value2 = 67u;
176 uint16_t value1 = 0xFF42u;
177 uint16_t value2 = 0xFF67u;
float MATH_LinearInterpolation(const float x1, const float y1, const float x2, const float y2, const float x_interpolate)
Linear inter-/extrapolates a third point according to two given points.
uint16_t MATH_SwapBytesUint16_t(const uint16_t val)
Swap bytes of uint16_t value.
uint16_t MATH_MinimumOfTwoUint16_t(const uint16_t value1, const uint16_t value2)
Returns the minimum of the passed uint16_t values.
uint32_t MATH_SwapBytesUint32_t(const uint32_t val)
Swap bytes of uint32_t value.
uint8_t MATH_MinimumOfTwoUint8_t(const uint8_t value1, const uint8_t value2)
Returns the minimum of the passed uint8_t values.
float MATH_MinimumOfTwoFloats(const float value1, const float value2)
Returns the minimum of the passed float values.
uint64_t MATH_SwapBytesUint64_t(const uint64_t val)
Swap bytes of uint64_t value.
math library for often used math functions
void test_allZeros_swap32(void)
void test_allZeros_swap64(void)
void test_linearInterpolation_extrapolateFromX1AndX2()
float coord_x_interpolate
void test_minimumOfTwoFloats(void)
void test_linearInterpolation_X1EqualsX2()
void test_swap64_MAX(void)
void test_linearInterpolation_interpolateBetweenX1AndX2()
void test_MATH_MinimumOfTwoUint16_t(void)
void test_allZeros_swap16(void)
void test_swap32_MAX(void)
void test_swap16_MAX(void)
void test_MATH_MinimumOfTwoUint8_t(void)