gwnavruntime/math/movetotarget.h Source File

movetotarget.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 
10 
11 namespace Kaim
12 {
13 
16 {
17 public:
24  static KyFloat32 Scalar(KyFloat32 target, KyFloat32 maxMove, KyFloat32 input);
25 
37  static Vec2f Dir2d(const Vec2f& target, KyFloat32 maxAngleInRadian, const Vec2f& input);
38 };
39 
40 
41 }
42 
Static functions to compute new position, rotation that are closer to a target while respecting a max...
Definition: movetotarget.h:15
static KyFloat32 Scalar(KyFloat32 target, KyFloat32 maxMove, KyFloat32 input)
Definition: movetotarget.cpp:12
2d vector using KyFloat32.
Definition: vec2f.h:18
static Vec2f Dir2d(const Vec2f &target, KyFloat32 maxAngleInRadian, const Vec2f &input)
Definition: movetotarget.cpp:23
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
float KyFloat32
float
Definition: types.h:32