2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/public-api/common/constants.h>
25 #include <dali/public-api/math/compile-time-math.h>
26 #include <dali/public-api/math/degree.h>
31 const Vector3 ParentOrigin::TOP_LEFT (0.0f, 0.0f, 0.5f);
32 const Vector3 ParentOrigin::TOP_CENTER (0.5f, 0.0f, 0.5f);
33 const Vector3 ParentOrigin::TOP_RIGHT (1.0f, 0.0f, 0.5f);
34 const Vector3 ParentOrigin::CENTER_LEFT (0.0f, 0.5f, 0.5f);
35 const Vector3 ParentOrigin::CENTER (0.5f, 0.5f, 0.5f);
36 const Vector3 ParentOrigin::CENTER_RIGHT (1.0f, 0.5f, 0.5f);
37 const Vector3 ParentOrigin::BOTTOM_LEFT (0.0f, 1.0f, 0.5f);
38 const Vector3 ParentOrigin::BOTTOM_CENTER(0.5f, 1.0f, 0.5f);
39 const Vector3 ParentOrigin::BOTTOM_RIGHT (1.0f, 1.0f, 0.5f);
41 const Vector3 ParentOrigin::DEFAULT( ParentOrigin::TOP_LEFT );
43 const Vector3 AnchorPoint::TOP_LEFT (0.0f, 0.0f, 0.5f);
44 const Vector3 AnchorPoint::TOP_CENTER (0.5f, 0.0f, 0.5f);
45 const Vector3 AnchorPoint::TOP_RIGHT (1.0f, 0.0f, 0.5f);
46 const Vector3 AnchorPoint::CENTER_LEFT (0.0f, 0.5f, 0.5f);
47 const Vector3 AnchorPoint::CENTER (0.5f, 0.5f, 0.5f);
48 const Vector3 AnchorPoint::CENTER_RIGHT (1.0f, 0.5f, 0.5f);
49 const Vector3 AnchorPoint::BOTTOM_LEFT (0.0f, 1.0f, 0.5f);
50 const Vector3 AnchorPoint::BOTTOM_CENTER(0.5f, 1.0f, 0.5f);
51 const Vector3 AnchorPoint::BOTTOM_RIGHT (1.0f, 1.0f, 0.5f);
53 const Vector3 AnchorPoint::DEFAULT( AnchorPoint::CENTER );
55 const Vector4 Color::BLACK( 0.0f, 0.0f, 0.0f, 1.0f );
56 const Vector4 Color::WHITE( 1.0f, 1.0f, 1.0f, 1.0f );
58 const Vector4 Color::RED( 1.0f, 0.0f, 0.0f, 1.0f );
59 const Vector4 Color::GREEN( 0.0f, 1.0f, 0.0f, 1.0f );
60 const Vector4 Color::BLUE( 0.0f, 0.0f, 1.0f, 1.0f );
62 const Vector4 Color::YELLOW( 1.0f, 1.0f, 0.0f, 1.0f );
63 const Vector4 Color::MAGENTA( 1.0f, 0.0f, 1.0f, 1.0f );
64 const Vector4 Color::CYAN( 0.0f, 1.0f, 1.0f, 1.0f );
66 const Vector4 Color::TRANSPARENT( 0.0f, 0.0f, 0.0f, 0.0f );
69 const float Math::MACHINE_EPSILON_0 = Epsilon<0>::value;
70 const float Math::MACHINE_EPSILON_1 = Epsilon<1>::value;
71 const float Math::MACHINE_EPSILON_10 = Epsilon<10>::value;
72 const float Math::MACHINE_EPSILON_100 = Epsilon<100>::value;
73 const float Math::MACHINE_EPSILON_1000 = Epsilon<1000>::value;
74 const float Math::MACHINE_EPSILON_10000 = Epsilon<10000>::value;