2 * Copyright (c) 2023 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.
18 #include <dali-scene3d/public-api/algorithm/path-finder-waypoint.h>
21 #include <dali-scene3d/internal/algorithm/navigation-mesh-impl.h>
22 #include <dali-scene3d/internal/algorithm/path-finder-waypoint-data.h>
27 namespace Dali::Scene3D::Algorithm
32 mImpl = std::make_unique<Scene3D::Internal::Algorithm::WayPointData>();
35 WayPoint::~WayPoint() = default;
37 uint32_t WayPoint::GetNavigationMeshFaceIndex() const
39 return mImpl->nodeIndex;
42 Dali::Vector2 WayPoint::GetFaceLocalSpacePosition() const
44 return mImpl->point2d;
47 Dali::Vector3 WayPoint::GetScenePosition() const
49 return mImpl->point3d;
52 WayPoint::WayPoint(const WayPoint& wp)
54 mImpl = std::make_unique<Internal::Algorithm::WayPointData>();
58 WayPoint& WayPoint::operator=(const WayPoint& wp)
60 mImpl = std::make_unique<Internal::Algorithm::WayPointData>();
65 WayPoint::operator Internal::Algorithm::WayPointData&()