Dali 3D User Interface Engine
Functions
utc-Dali-MathUtils.cpp File Reference
#include <iostream>
#include <stdlib.h>
#include <dali/public-api/dali-core.h>
#include <dali-test-suite-utils.h>
Include dependency graph for utc-Dali-MathUtils.cpp:

Go to the source code of this file.

Functions

void utc_dali_math_utils_startup (void)
 
void utc_dali_math_utils_cleanup (void)
 
int UtcDaliMathUtilsIsPowerOfTwo (void)
 
int UtcDaliMathUtilsNextPowerOfTwoP (void)
 
int UtcDaliMathUtilsNextPowerOfTwoN (void)
 
int UtcDaliMathUtilsClampP (void)
 
int UtcDaliMathUtilsClampInPlaceP (void)
 
int UtcDaliMathUtilsLerpP (void)
 
int UtcDaliMathUtilsGetRangedEpsilonP (void)
 
int UtcDaliMathUtilsWrapInDomainP (void)
 
int UtcDaliMathUtilsShortestDistanceInDomainP (void)
 
int UtcDaliMathUtilsEqualsZeroP (void)
 
int UtcDaliMathUtilsEquals01P (void)
 
int UtcDaliMathUtilsEquals02P (void)
 
int UtcDaliMathUtilsRoundP (void)
 

Function Documentation

void utc_dali_math_utils_cleanup ( void  )

Definition at line 31 of file utc-Dali-MathUtils.cpp.

References test_return_value, and TET_PASS.

void utc_dali_math_utils_startup ( void  )

Definition at line 26 of file utc-Dali-MathUtils.cpp.

References test_return_value, and TET_UNDEF.

int UtcDaliMathUtilsClampInPlaceP ( void  )

Definition at line 141 of file utc-Dali-MathUtils.cpp.

References Dali::ClampInPlace(), DALI_TEST_EQUALS(), END_TEST, Dali::Toolkit::Text::min(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliMathUtilsClampP ( void  )

Definition at line 112 of file utc-Dali-MathUtils.cpp.

References Dali::Clamp(), Dali::ClampInPlace(), DALI_TEST_EQUALS(), END_TEST, Dali::Toolkit::Text::min(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliMathUtilsEquals01P ( void  )

Definition at line 294 of file utc-Dali-MathUtils.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::Equals(), and Dali::GetRangedEpsilon().

Here is the call graph for this function:

int UtcDaliMathUtilsEquals02P ( void  )

Definition at line 302 of file utc-Dali-MathUtils.cpp.

References DALI_TEST_CHECK, END_TEST, and Dali::Equals().

Here is the call graph for this function:

int UtcDaliMathUtilsEqualsZeroP ( void  )

Definition at line 281 of file utc-Dali-MathUtils.cpp.

References DALI_TEST_CHECK, END_TEST, Dali::EqualsZero(), Dali::Math::PI, and Dali::Math::PI_2.

Here is the call graph for this function:

int UtcDaliMathUtilsGetRangedEpsilonP ( void  )
int UtcDaliMathUtilsIsPowerOfTwo ( void  )

Definition at line 36 of file utc-Dali-MathUtils.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::IsPowerOfTwo(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliMathUtilsLerpP ( void  )

Definition at line 159 of file utc-Dali-MathUtils.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Lerp(), offset, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliMathUtilsNextPowerOfTwoN ( void  )

Definition at line 89 of file utc-Dali-MathUtils.cpp.

References DALI_TEST_ASSERT(), DALI_TEST_PRINT_ASSERT(), END_TEST, Dali::NextPowerOfTwo(), TEST_LOCATION, TET_FAIL, tet_printf(), and tet_result().

Here is the call graph for this function:

int UtcDaliMathUtilsNextPowerOfTwoP ( void  )

Definition at line 63 of file utc-Dali-MathUtils.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::NextPowerOfTwo(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliMathUtilsRoundP ( void  )

Definition at line 310 of file utc-Dali-MathUtils.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Round(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliMathUtilsShortestDistanceInDomainP ( void  )

Definition at line 267 of file utc-Dali-MathUtils.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Math::MACHINE_EPSILON_10, Dali::ShortestDistanceInDomain(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliMathUtilsWrapInDomainP ( void  )

Definition at line 248 of file utc-Dali-MathUtils.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Math::MACHINE_EPSILON_1, Dali::Math::MACHINE_EPSILON_10, TEST_LOCATION, and Dali::WrapInDomain().

Here is the call graph for this function:

Dali Docs Home
Read more about Dali