VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFiringSolution.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <vrvMath/DtVector3.h>
15 
16 namespace makVrv
17 {
20  {
21  public:
24 
26  virtual ~DtFiringSolution();
27 
29  virtual const dvec3& direction() const;
30 
32  virtual double angle() const;
33 
35  virtual double timeToTarget() const;
36 
38  virtual bool hasConverged() const;
39 
41  virtual void setDirection(const dvec3& direction);
42 
44  virtual void setAngle(double angle);
45 
47  virtual void setTimeToTarget(double time);
48 
50  virtual void setHasConverged(bool converged);
51 
52  protected:
54  double myAngle;
55  double myTimeToTarget;
57  };
58 
59 } // namespace makVrv
bool myHasConverged
Whether the iterative solver converged.
Definition: DtFiringSolution.h:56
3 dimensional vector
dvec3 myDirection
Unit vector indicating the direction to fire.
Definition: DtFiringSolution.h:53
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
Result data from a ballistic-solver calculation.
Definition: DtFiringSolution.h:19
double myTimeToTarget
Predicted time for the projectile to reach the target.
Definition: DtFiringSolution.h:55
double myAngle
Launch angle above horizontal in radians.
Definition: DtFiringSolution.h:54
#define DT_DLL_VRVBALLISTICS
Definition: vrvBallistics.h:19
Dll export defines.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)