gwnavruntime/channel/diagonalstripfunnel.h Source File

diagonalstripfunnel.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 #pragma once
8 
11 
12 
13 namespace Kaim
14 {
15 
19 {
20 public:
21  DiagonalStripFunnel(const DiagonalStrip* diagonalstrip)
22  : m_diagonalstrip(diagonalstrip)
23  {}
24 
25  void Initialize(KyUInt32 apexDiagonalStripCornerIdx, FunnelDirection funnelDirection);
26 
31 
32  FunnelResult UpdateAccordinglyToDiagonalStripCorner(KyUInt32 cornerIdx);
33 
34 private:
35  Funnel m_straightLineFunnel;
36 
37  const DiagonalStrip* m_diagonalstrip;
38  Vec2f m_apexPos2d;
39 };
40 
41 } // namespace Kaim
42 
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
KyResult InitializeToNextApex(KyUInt32 &cornerIdx)
Initialize the funnel to its current closure corner and updates cornerIdx to the next corner to be ad...
Definition: diagonalstripfunnel.cpp:24
2d vector using KyFloat32.
Definition: vec2f.h:18
Basic straight line funnel acting directly on 2D positions.
Definition: funnel.h:42
Navigation return code class.
Definition: types.h:108
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
Basic corner-to-corner funnel to be used in standard line-of-view based browsing of diagonal strips...
Definition: diagonalstripfunnel.h:18