BVB Source Codes

CRYENGINE Show FlyHelpers_Path.h Source code

Return Download CRYENGINE: download FlyHelpers_Path.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __FLY_HELPERS__PATH__H__
  4. #define __FLY_HELPERS__PATH__H__
  5.  
  6. #include <CryMath/Cry_Geo.h>
  7.  
  8. namespace FlyHelpers
  9. {
  10.  
  11. class Path
  12. {
  13. public:
  14.         Path();
  15.         ~Path();
  16.  
  17.         void        Clear();
  18.  
  19.         void        AddPoint(const Vec3& point);
  20.  
  21.         const Vec3& GetPoint(const size_t pointIndex) const;
  22.  
  23.         Lineseg     GetSegment(const size_t segmentIndex) const;
  24.         float       GetSegmentLength(const size_t segmentIndex) const;
  25.  
  26.         size_t      GetPointCount() const;
  27.         size_t      GetSegmentCount() const;
  28.  
  29.         void        MakeLooping();
  30.  
  31.         float       GetPathDistanceToPoint(const size_t pointIndex) const;
  32.         float       GetTotalPathDistance() const;
  33.  
  34. private:
  35.         std::vector<Vec3>  m_points;
  36.         std::vector<float> m_segmentDistances;
  37.         std::vector<float> m_pathLengthsToPoint;
  38. };
  39.  
  40. }
  41.  
  42. #endif
  43.  
downloadFlyHelpers_Path.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top