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

Go to the source code of this file.

Functions

void utc_dali_quaternion_startup (void)
 
void utc_dali_quaternion_cleanup (void)
 
int UtcDaliQuaternionCtorDefaultP (void)
 
int UtcDaliQuaternionCtorCosSinThetaP (void)
 
int UtcDaliQuaternionCtorVector4P (void)
 
int UtcDaliQuaternionCtorAxisAngleVector3P (void)
 
int UtcDaliQuaternionCtorEulerAngleP (void)
 
int UtcDaliQuaternionCtorMatrixP01 (void)
 
int UtcDaliQuaternionCtorMatrixP02 (void)
 
int UtcDaliQuaternionCtorMatrixP03 (void)
 
int UtcDaliQuaternionCtorAxesP01 (void)
 
int UtcDaliQuaternionCtorAxesP02 (void)
 
int UtcDaliQuaternionCtorAxesP03 (void)
 
int UtcDaliQuaternionCtorTwoVectorsP (void)
 
int UtcDaliQuaternionAsVectorP (void)
 
int UtcDaliQuaternionToAxisAngleVector3P (void)
 
int UtcDaliQuaternionToAxisAngleVector3N (void)
 
int UtcDaliQuaternionSetEulerP (void)
 
int UtcDaliQuaternionEulerAnglesP (void)
 
int UtcDaliQuaternionToMatrixP01 (void)
 
int UtcDaliQuaternionToMatrixP02 (void)
 
int UtcDaliQuaternionOperatorAdditionP (void)
 
int UtcDaliQuaternionOperatorSubtractionP (void)
 
int UtcDaliQuaternionConjugateP (void)
 
int UtcDaliQuaternionOperatorMultiplicationQuaternionP (void)
 
int UtcDaliQuaternionOperatorMultiplicationVector3P (void)
 
int UtcDaliQuaternionOperatorMultiplicationFloatP01 (void)
 
int UtcDaliQuaternionOperatorMultiplicationFloatP02 (void)
 
int UtcDaliQuaternionOperatorMultiplicationFloatP03 (void)
 
int UtcDaliQuaternionOperatorDivisionQuaternionP (void)
 
int UtcDaliQuaternionOperatorDivisionFloatP (void)
 
int UtcDaliQuaternionOperatorDivideAssignedFloatP (void)
 
int UtcDaliQuaternionOperatorNegationP (void)
 
int UtcDaliQuaternionOperatorAddAssignP (void)
 
int UtcDaliQuaternionOperatorSubtractAssignP (void)
 
int UtcDaliQuaternionOperatorMultiplyAssignQuaternionP (void)
 
int UtcDaliQuaternionOperatorMultiplyAssignFloatP01 (void)
 
int UtcDaliQuaternionOperatorMultiplyAssignFloatP02 (void)
 
int UtcDaliQuaternionOperatorEqualityP (void)
 
int UtcDaliQuaternionOperatorInequalityP (void)
 
int UtcDaliQuaternionLengthP (void)
 
int UtcDaliQuaternionLengthSquaredP (void)
 
int UtcDaliQuaternionNormalizeP (void)
 
int UtcDaliQuaternionNormalizedP (void)
 
int UtcDaliQuaternionIsIdentityP (void)
 
int UtcDaliQuaternionIsIdentityN (void)
 
int UtcDaliQuaternionInvertP (void)
 
int UtcDaliQuaternionDotP (void)
 
int UtcDaliQuaternionRotateVector3P (void)
 
int UtcDaliQuaternionRotateVector4P (void)
 
int UtcDaliQuaternionExpP01 (void)
 
int UtcDaliQuaternionExpP02 (void)
 
int UtcDaliQuaternionExpN (void)
 
int UtcDaliQuaternionLogP01 (void)
 
int UtcDaliQuaternionLogP02 (void)
 
int UtcDaliQuaternionLerpP (void)
 
int UtcDaliQuaternionSlerpP01 (void)
 
int UtcDaliQuaternionSlerpP02 (void)
 
int UtcDaliQuaternionSlerpP03 (void)
 
int UtcDaliQuaternionSlerpP04 (void)
 
int UtcDaliQuaternionSlerpNoInvertP01 (void)
 
int UtcDaliQuaternionSlerpNoInvertP02 (void)
 
int UtcDaliQuaternionSquadP (void)
 
int UtcDaliAngleBetweenP (void)
 
int UtcDaliQuaternionOStreamOperatorP (void)
 

Function Documentation

void utc_dali_quaternion_cleanup ( void  )

Definition at line 33 of file utc-Dali-Quaternion.cpp.

References test_return_value, and TET_PASS.

void utc_dali_quaternion_startup ( void  )

Definition at line 28 of file utc-Dali-Quaternion.cpp.

References test_return_value, and TET_UNDEF.

int UtcDaliAngleBetweenP ( void  )
int UtcDaliQuaternionAsVectorP ( void  )

Definition at line 298 of file utc-Dali-Quaternion.cpp.

References Dali::Quaternion::AsVector(), DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionConjugateP ( void  )

Definition at line 449 of file utc-Dali-Quaternion.cpp.

References Dali::Quaternion::Conjugate(), DALI_TEST_EQUALS(), END_TEST, TEST_LOCATION, Dali::Vector3::x, Dali::Vector3::y, and Dali::Vector3::z.

Here is the call graph for this function:

int UtcDaliQuaternionCtorAxesP01 ( void  )

Definition at line 191 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Matrix::GetXAxis(), Dali::Matrix::GetYAxis(), Dali::Matrix::GetZAxis(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionCtorAxesP02 ( void  )
int UtcDaliQuaternionCtorAxesP03 ( void  )
int UtcDaliQuaternionCtorAxisAngleVector3P ( void  )
int UtcDaliQuaternionCtorCosSinThetaP ( void  )

Definition at line 49 of file utc-Dali-Quaternion.cpp.

References Dali::Quaternion::AsVector(), DALI_TEST_EQUALS(), END_TEST, TEST_LOCATION, Dali::Vector4::w, Dali::Vector4::x, Dali::Vector4::y, and Dali::Vector4::z.

Here is the call graph for this function:

int UtcDaliQuaternionCtorDefaultP ( void  )

Definition at line 39 of file utc-Dali-Quaternion.cpp.

References Dali::Quaternion::AsVector(), DALI_TEST_EQUALS(), END_TEST, TEST_LOCATION, Dali::Vector4::w, Dali::Vector4::x, Dali::Vector4::y, and Dali::Vector4::z.

Here is the call graph for this function:

int UtcDaliQuaternionCtorEulerAngleP ( void  )

Definition at line 83 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::EulerAngles(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionCtorMatrixP01 ( void  )

Definition at line 108 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionCtorMatrixP02 ( void  )

Definition at line 124 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Matrix::IDENTITY, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionCtorMatrixP03 ( void  )
int UtcDaliQuaternionCtorTwoVectorsP ( void  )

Definition at line 286 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Vector3::Normalize(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionCtorVector4P ( void  )

Definition at line 60 of file utc-Dali-Quaternion.cpp.

References Dali::Quaternion::AsVector(), DALI_TEST_EQUALS(), END_TEST, TEST_LOCATION, Dali::Vector4::w, Dali::Vector4::x, Dali::Vector4::y, and Dali::Vector4::z.

Here is the call graph for this function:

int UtcDaliQuaternionDotP ( void  )

Definition at line 736 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), Dali::Quaternion::Dot(), Dali::Vector3::Dot(), END_TEST, TEST_LOCATION, Dali::Vector3::x, Dali::Vector3::y, and Dali::Vector3::z.

Here is the call graph for this function:

int UtcDaliQuaternionEulerAnglesP ( void  )

Definition at line 366 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::EulerAngles(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionExpN ( void  )

Definition at line 827 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_CHECK, END_TEST, and Dali::Quaternion::Exp().

Here is the call graph for this function:

int UtcDaliQuaternionExpP01 ( void  )

Definition at line 793 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::Exp(), Dali::Quaternion::Length(), Dali::Quaternion::Log(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionExpP02 ( void  )

Definition at line 810 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::Exp(), Dali::Quaternion::Length(), Dali::Quaternion::Log(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionInvertP ( void  )
int UtcDaliQuaternionIsIdentityN ( void  )

Definition at line 711 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::IsIdentity(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionIsIdentityP ( void  )

Definition at line 704 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::IsIdentity(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionLengthP ( void  )

Definition at line 669 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::Length(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionLengthSquaredP ( void  )

Definition at line 677 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::LengthSquared(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionLerpP ( void  )

Definition at line 873 of file utc-Dali-Quaternion.cpp.

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

Here is the call graph for this function:

int UtcDaliQuaternionLogP01 ( void  )
int UtcDaliQuaternionLogP02 ( void  )

Definition at line 859 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::Exp(), Dali::Quaternion::Log(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionNormalizedP ( void  )

Definition at line 695 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::Normalized(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionNormalizeP ( void  )

Definition at line 685 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::Normalize(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorAddAssignP ( void  )

Definition at line 576 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorAdditionP ( void  )

Definition at line 427 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorDivideAssignedFloatP ( void  )

Definition at line 557 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorDivisionFloatP ( void  )

Definition at line 548 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorDivisionQuaternionP ( void  )

Definition at line 530 of file utc-Dali-Quaternion.cpp.

References Dali::Quaternion::Conjugate(), DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::LengthSquared(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorEqualityP ( void  )

Definition at line 633 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_CHECK, and END_TEST.

int UtcDaliQuaternionOperatorInequalityP ( void  )

Definition at line 659 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_CHECK, and END_TEST.

int UtcDaliQuaternionOperatorMultiplicationFloatP01 ( void  )

Definition at line 501 of file utc-Dali-Quaternion.cpp.

References Dali::Quaternion::AsVector(), DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorMultiplicationFloatP02 ( void  )

Definition at line 512 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorMultiplicationFloatP03 ( void  )

Definition at line 521 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorMultiplicationQuaternionP ( void  )

Definition at line 467 of file utc-Dali-Quaternion.cpp.

References Dali::Vector3::Cross(), DALI_TEST_EQUALS(), Dali::Vector3::Dot(), END_TEST, TEST_LOCATION, Dali::Vector3::x, Dali::Vector3::y, and Dali::Vector3::z.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorMultiplicationVector3P ( void  )
int UtcDaliQuaternionOperatorMultiplyAssignFloatP01 ( void  )

Definition at line 613 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorMultiplyAssignFloatP02 ( void  )

Definition at line 623 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorMultiplyAssignQuaternionP ( void  )

Definition at line 599 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, TEST_LOCATION, Dali::Vector3::x, Dali::Vector3::y, and Dali::Vector3::z.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorNegationP ( void  )

Definition at line 567 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorSubtractAssignP ( void  )

Definition at line 588 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOperatorSubtractionP ( void  )

Definition at line 438 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionOStreamOperatorP ( void  )

Definition at line 1106 of file utc-Dali-Quaternion.cpp.

References Dali::ANGLE_180, DALI_TEST_EQUALS(), END_TEST, TEST_LOCATION, and Dali::Vector3::YAXIS.

Here is the call graph for this function:

int UtcDaliQuaternionRotateVector3P ( void  )
int UtcDaliQuaternionRotateVector4P ( void  )
int UtcDaliQuaternionSetEulerP ( void  )

Definition at line 335 of file utc-Dali-Quaternion.cpp.

References Dali::ANGLE_0, Dali::ANGLE_45, Dali::Quaternion::AsVector(), DALI_TEST_EQUALS(), END_TEST, Dali::Quaternion::SetEuler(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionSlerpNoInvertP01 ( void  )
int UtcDaliQuaternionSlerpNoInvertP02 ( void  )
int UtcDaliQuaternionSlerpP01 ( void  )
int UtcDaliQuaternionSlerpP02 ( void  )

Definition at line 917 of file utc-Dali-Quaternion.cpp.

References Dali::ANGLE_30, Dali::ANGLE_60, Dali::ANGLE_90, DALI_TEST_EQUALS(), END_TEST, r, Dali::Quaternion::Slerp(), and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionSlerpP03 ( void  )
int UtcDaliQuaternionSlerpP04 ( void  )
int UtcDaliQuaternionSquadP ( void  )
int UtcDaliQuaternionToAxisAngleVector3N ( void  )
int UtcDaliQuaternionToAxisAngleVector3P ( void  )
int UtcDaliQuaternionToMatrixP01 ( void  )

Definition at line 392 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, and TEST_LOCATION.

Here is the call graph for this function:

int UtcDaliQuaternionToMatrixP02 ( void  )

Definition at line 409 of file utc-Dali-Quaternion.cpp.

References DALI_TEST_EQUALS(), END_TEST, anonymous_namespace{utc-Dali-Matrix3.cpp}::m2, and TEST_LOCATION.

Here is the call graph for this function:

Dali Docs Home
Read more about Dali