VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBallisticSolverResult.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 
12 #include <string>
13 
14 namespace makVrv
15 {
23  {
25  Success,
26 
29 
32  NoGravity,
33 
35  OutOfRange,
36 
39  NoSolution,
40 
44  };
45 
51  {
52  switch (error)
53  {
55  return "A valid solution was found.";
57  return "No solution: the bullet's muzzle velocity is effectively zero; no projectile can be fired.";
59  return "No solution: gravitational magnitude is effectively zero; parabolic arc solutions do not exist in a zero-gravity environment.";
61  return "No solution: the target lies beyond the weapon's maximum ballistic range.";
63  return "No solution: the ballistic quadratic has no real roots within the allowed elevation-angle limits; no arc can reach the target under current constraints.";
65  return "No solution: the iterative intercept solver exhausted its iteration budget without converging on a stable lead-angle estimate.";
66  default:
67  return "No solution: unknown error.";
68  }
69  }
70 
71 } // namespace makVrv
std::string dtBallisticSolveErrorToString(DtBallisticSolveError error)
Returns a human-readable description of a DtBallisticSolveError value.
Definition: DtBallisticSolverResult.h:50
The bullet&#39;s muzzle velocity is effectively zero; no projectile can be fired.
The target lies beyond the weapon&#39;s maximum ballistic range.
Definition: asyncJobServer.h:39
The iterative intercept solver exhausted its iteration budget without converging on a stable lead-ang...
The ballistic quadratic has no real roots within the allowed elevation-angle limits; no arc can reach...
A valid solution was found and written to the output parameter.
DtBallisticSolveError
Describes why DtBallisticSolver failed to produce a firing solution.
Definition: DtBallisticSolverResult.h:22
Gravitational magnitude is effectively zero; parabolic arc solutions do not exist in a zero-gravity e...

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)