VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCoordinateFrame.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 
29  DtCoordinateFrame(const dvec3& r, const dvec3& f, const dvec3& u);
30 
32  virtual ~DtCoordinateFrame();
33 
35  virtual const dvec3& right() const;
36 
38  virtual const dvec3& forward() const;
39 
41  virtual const dvec3& up() const;
42 
44  virtual void setRight(const dvec3& r);
45 
47  virtual void setForward(const dvec3& f);
48 
50  virtual void setUp(const dvec3& u);
51 
55  virtual dvec3 worldToLocal(const dvec3& worldVector) const;
56 
60  virtual dvec3 localToWorld(const dvec3& localVector) const;
61 
65  virtual dvec3 projectToHorizontalPlane(const dvec3& vec) const;
66 
70  virtual double projectToVerticalAxis(const dvec3& vec) const;
71 
73  static DtCoordinateFrame createENU();
74 
76  static DtCoordinateFrame createNED();
77 
81  static DtCoordinateFrame fromUpVector(const dvec3& upDirection, const dvec3& hint = dvec3(0.0, 1.0, 0.0));
82 
83  protected:
87  };
88 
89 } // namespace makVrv
dvec3 myUp
Up direction (local Z-axis).
Definition: DtCoordinateFrame.h:86
3 dimensional vector
makVrv::Vector3_64 dvec3
Convenience alias for the 64-bit 3-component vector type used throughout vrvBallistics.
Definition: vrvBallistics.h:28
Defines a coordinate reference frame with three orthonormal basis vectors.
Definition: DtCoordinateFrame.h:19
dvec3 myForward
Forward direction (local Y-axis).
Definition: DtCoordinateFrame.h:85
#define DT_DLL_VRVBALLISTICS
Definition: vrvBallistics.h:19
dvec3 myRight
Right direction (local X-axis).
Definition: DtCoordinateFrame.h:84
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)