Dali 3D User Interface Engine
Variables
Dali::Math Namespace Reference

Math constants .0. More...

Variables

DALI_IMPORT_API const float MACHINE_EPSILON_0 = Epsilon<0>::value
 Epsilon for values near zero. More...
 
DALI_IMPORT_API const float MACHINE_EPSILON_1 = Epsilon<1>::value
 Epsilon for values near 1. More...
 
DALI_IMPORT_API const float MACHINE_EPSILON_10 = Epsilon<10>::value
 Epsilon for values near 10. More...
 
DALI_IMPORT_API const float MACHINE_EPSILON_100 = Epsilon<100>::value
 Epsilon for values near 100. More...
 
DALI_IMPORT_API const float MACHINE_EPSILON_1000 = Epsilon<1000>::value
 Epsilon for values near 1000. More...
 
DALI_IMPORT_API const float MACHINE_EPSILON_10000 = Epsilon<10000>::value
 Epsilon for values near 10000. More...
 
static const float PI = static_cast<float>(M_PI)
 Constant representing PI. More...
 
static const float PI_2 = static_cast<float>(M_PI_2)
 Constant representing PI/2. More...
 
static const float PI_4 = static_cast<float>(M_PI_4)
 Constant representing PI/4. More...
 
static const float PI_OVER_180 = Dali::Math::PI/180.0f
 Constant used to convert degree to radian. More...
 
static const float ONE80_OVER_PI = 180.0f/Dali::Math::PI
 Constant used to convert radian to degree. More...
 

Detailed Description

Math constants .0.

Variable Documentation

const float Dali::Math::MACHINE_EPSILON_0 = Epsilon<0>::value
const float Dali::Math::MACHINE_EPSILON_1 = Epsilon<1>::value

Epsilon for values near 1.

Definition at line 70 of file constants.cpp.

Referenced by Dali::Toolkit::Text::AtlasRenderer::Impl::AddGlyphs(), Dali::Toolkit::Internal::ItemView::AnimateScrollOvershoot(), Dali::Internal::SceneGraph::AnimatorBase::ApplyAlphaFunction(), Dali::Internal::SceneGraph::Animation::Bake(), Dali::Quaternion::Exp(), Dali::Toolkit::FixedRuler::FixedRuler(), Dali::GetRangedEpsilon(), Dali::Internal::SceneGraph::RenderTask::GetViewportEnabled(), anonymous_namespace{scroll-view-impl.cpp}::InternalRelativePositionConstraint(), Dali::Toolkit::Internal::Popup::LayoutTail(), Dali::Quaternion::Log(), Dali::Toolkit::Internal::ItemView::OnScrollFinished(), anonymous_namespace{item-view-impl.cpp}::OvershootOverlaySizeConstraint::operator()(), Dali::Toolkit::Internal::anonymous_namespace{scroll-view-impl.cpp}::InternalPrePositionConstraint::operator()(), Dali::Quaternion::operator==(), anonymous_namespace{item-view-impl.cpp}::OvershootOverlayPositionConstraint(), anonymous_namespace{item-view-impl.cpp}::OvershootOverlayRotationConstraint(), Dali::Internal::SceneGraph::PanGesture::PredictiveAlgorithm1(), Dali::Quaternion::Quaternion(), Dali::Internal::Actor::RayActorTest(), Dali::Internal::Path::SampleAt(), Dali::Internal::Path::SamplePosition(), Dali::Internal::Path::SampleTangent(), Dali::Toolkit::Internal::ScrollOvershootEffectRipple::SetOvershoot(), Dali::Internal::Actor::SetSizeInternal(), Dali::Internal::Program::SetSizeUniform3f(), Dali::Internal::Program::SetUniform1f(), Dali::Internal::Program::SetUniform2f(), Dali::Internal::Program::SetUniform4f(), Dali::Toolkit::Internal::ScrollView::SnapInternalXTo(), Dali::Toolkit::Internal::ScrollView::SnapInternalYTo(), Dali::Toolkit::Internal::ScrollView::SnapWithVelocity(), UtcDaliMathUtilsGetRangedEpsilonP(), UtcDaliMathUtilsWrapInDomainP(), UtcDaliRenderTaskSetViewportPosition(), UtcDaliRenderTaskSetViewportSize(), UtcLinearConstrainerApply(), Dali::Toolkit::WrapActorConstraint(), and Dali::WrapInDomain().

const float Dali::Math::MACHINE_EPSILON_10 = Epsilon<10>::value
const float Dali::Math::MACHINE_EPSILON_100 = Epsilon<100>::value
const float Dali::Math::MACHINE_EPSILON_1000 = Epsilon<1000>::value
const float Dali::Math::MACHINE_EPSILON_10000 = Epsilon<10000>::value
const float Dali::Math::ONE80_OVER_PI = 180.0f/Dali::Math::PI
static

Constant used to convert radian to degree.

Definition at line 131 of file constants.h.

const float Dali::Math::PI = static_cast<float>(M_PI)
static

Constant representing PI.

Definition at line 127 of file constants.h.

Referenced by Dali::Internal::PanGestureDetector::AddAngle(), Dali::Internal::SceneGraph::AnimatorBase::ApplyAlphaFunction(), Dali::Internal::PanGestureDetector::CheckAngleAllowed(), Dali::Internal::PanGestureProcessor::CheckGestureDetector(), Dali::Toolkit::CreateSoftButtonEffect(), Dali::Internal::anonymous_namespace{pan-gesture-detector-impl.cpp}::GetOppositeAngle(), Dali::Internal::Adaptor::Orientation::GetRadians(), anonymous_namespace{grid-layout.cpp}::GridRotationConstraint180(), anonymous_namespace{grid-layout.cpp}::GridRotationConstraint270(), anonymous_namespace{grid-layout.cpp}::GridRotationConstraint90(), anonymous_namespace{page-turn-view-impl.cpp}::RotationConstraint::operator()(), anonymous_namespace{depth-layout.cpp}::DepthRotationConstraint::operator()(), anonymous_namespace{spiral-layout.cpp}::SpiralPositionConstraint::OrientationDown(), anonymous_namespace{spiral-layout.cpp}::SpiralRotationConstraint::OrientationDown(), anonymous_namespace{spiral-layout.cpp}::SpiralPositionConstraint::OrientationLeft(), anonymous_namespace{spiral-layout.cpp}::SpiralRotationConstraint::OrientationLeft(), anonymous_namespace{spiral-layout.cpp}::SpiralPositionConstraint::OrientationRight(), anonymous_namespace{spiral-layout.cpp}::SpiralRotationConstraint::OrientationRight(), anonymous_namespace{spiral-layout.cpp}::SpiralPositionConstraint::OrientationUp(), anonymous_namespace{item-view-impl.cpp}::OvershootOverlayRotationConstraint(), RadiansToDegrees(), Dali::Internal::PanGestureDetector::RemoveAngle(), anonymous_namespace{page-turn-view-impl.cpp}::RotationConstraint::RotationConstraint(), Dali::Toolkit::Internal::SpiralLayout::SetItemSpacing(), Dali::Toolkit::Internal::SpiralLayout::SetRevolutionDistance(), Dali::Toolkit::Internal::PageTurnView::SetupShadowView(), Dali::Toolkit::Internal::ScrollOvershootEffectRipple::UpdateVisibility(), UtcDaliCameraActorSetFieldOfViewN(), UtcDaliCameraActorSetFieldOfViewP(), UtcDaliConstraintsLookAt(), UtcDaliDegreeComparison01(), UtcDaliDegreeConstructors01(), UtcDaliMathUtilsEqualsZeroP(), UtcDaliPanGestureAngleHandling(), UtcDaliPanGestureDirectionHandling(), UtcDaliQuaternionLogP01(), UtcDaliQuaternionSlerpNoInvertP01(), UtcDaliQuaternionSlerpP01(), UtcDaliRadianCastOperatorEquals(), UtcDaliRadianCastOperatorLessThan(), UtcDaliRadianCastOperatorNotEquals(), UtcDaliRadianCastOperators01(), UtcDaliRadianComparison01(), UtcDaliRadianConstructors01(), and UtcDaliTiltSensorGetRotation().

const float Dali::Math::PI_2 = static_cast<float>(M_PI_2)
static
const float Dali::Math::PI_4 = static_cast<float>(M_PI_4)
static

Constant representing PI/4.

Definition at line 129 of file constants.h.

Referenced by UtcDaliRadianCastOperatorLessThan().

const float Dali::Math::PI_OVER_180 = Dali::Math::PI/180.0f
static

Constant used to convert degree to radian.

Definition at line 130 of file constants.h.

Referenced by Dali::Toolkit::Internal::Model3dView::Model3dView(), and Dali::Radian::operator=().

Dali Docs Home
Read more about Dali