gwnavruntime/math/converge.h Source File

converge.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 
8 // primary contact: GUAL - secondary contact: NOBODY
9 #ifndef Navigation_Converge_H
10 #define Navigation_Converge_H
11 
12 
14 
15 
16 namespace Kaim
17 {
18 
20 class Converge
21 {
22 public:
27  static KyFloat32 ConvergeToFloat32(KyFloat32 desired, KyFloat32 maxDelta, KyFloat32 current);
28 
29  /* maxDeltaAngle */
30  /* + */
31  /* / */
32  /* / */
33  /* +------+------+ */
34  /* \ */
35  /* \ */
36  /* + */
38  static Vec2f ConvergeToDir2d(const Vec2f& desiredDir2D, KyFloat32 maxDeltaAngleInRadian, const Vec2f& currentDir2D);
39 };
40 
41 
42 }
43 
44 #endif // Navigation_Converge_H
This class represents a three-dimensional 6 freedom degrees unit transform.
Definition: converge.h:20
static KyFloat32 ConvergeToFloat32(KyFloat32 desired, KyFloat32 maxDelta, KyFloat32 current)
Returns a float that is as close as possible to 'desired' but respecting |returned_value - current| < />
This class defines a two-dimensional vector whose coordinates are stored using floating-point numbers...
Definition: vec2f.h:24
Definition: gamekitcrowddispersion.h:20
static Vec2f ConvergeToDir2d(const Vec2f &desiredDir2D, KyFloat32 maxDeltaAngleInRadian, const Vec2f &currentDir2D)
Returns a 2D direction that is as close as possible to 'desiredDir2D' but respecting |angle(returned_...
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43