1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_POINT3_H
17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_POINT3_H
18 
19 namespace OHOS::Ace::Testing {
20 class TestingPoint3 {
21 public:
22     TestingPoint3() = default;
23     virtual ~TestingPoint3() = default;
24 
TestingPoint3(const TestingPoint3 & point)25     TestingPoint3(const TestingPoint3& point) : x_(point.x_), y_(point.y_), z_(point.z_) {}
26 
TestingPoint3(float xP,float yP,float zP)27     TestingPoint3(float xP, float yP, float zP) : x_(xP), y_(yP), z_(zP) {}
28 
GetX()29     virtual float GetX() const
30     {
31         return x_;
32     }
33 
GetY()34     virtual float GetY() const
35     {
36         return y_;
37     }
38 
GetZ()39     virtual float GetZ() const
40     {
41         return z_;
42     }
43 
SetX(float xP)44     virtual void SetX(float xP)
45     {
46         x_ = xP;
47     }
48 
SetY(float yP)49     virtual void SetY(float yP)
50     {
51         y_ = yP;
52     }
53 
SetZ(float zP)54     virtual void SetZ(float zP)
55     {
56         z_ = zP;
57     }
58 
59 private:
60     float x_ = 0.0f;
61     float y_ = 0.0f;
62     float z_ = 0.0f;
63 };
64 } // namespace OHOS::Ace::Testing
65 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_POINT3H