gwnavruntime/channel/diagonalstripfunnel.h Source File

diagonalstripfunnel.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 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 #ifndef Navigation_DiagonalStripFunnel_H
8 #define Navigation_DiagonalStripFunnel_H
9 
12 
13 
14 namespace Kaim
15 {
16 
20 {
21 public:
22  DiagonalStripFunnel(const DiagonalStrip* diagonalstrip)
23  : m_diagonalstrip(diagonalstrip)
24  {}
25 
26  void Initialize(KyUInt32 apexDiagonalStripCornerIdx, FunnelDirection funnelDirection);
27 
32 
33  FunnelResult UpdateAccordinglyToDiagonalStripCorner(KyUInt32 cornerIdx);
34 
35 private:
36  Funnel m_straightLineFunnel;
37 
38  const DiagonalStrip* m_diagonalstrip;
39  Vec2f m_apexPos2d;
40 };
41 
42 } // namespace Kaim
43 
44 #endif // Navigation_DiagonalStripFunnel_H
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
KyResult InitializeToNextApex(KyUInt32 &cornerIdx)
Initialize the funnel to its current closure corner and updates cornerIdx to the next corner to be ad...
This class defines a two-dimensional vector whose coordinates are stored using floating-point numbers...
Definition: vec2f.h:24
Basic straight line funnel acting directly on 2D positions.
Definition: funnel.h:43
Definition: gamekitcrowddispersion.h:20
Basic corner-to-corner funnel to be used in standard line-of-view based browsing of diagonal strips...
Definition: diagonalstripfunnel.h:19
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36