VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
coordUtils.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvUtil/vrvUtil.h>
13 #include <vrvUtil/DtQuat.h>
14 #include <matrix/vlVector.h>
15 #include <matrix/vlDcm.h>
16 #include <matrix/vlTaitBryan.h>
17 #include <matrix/geodeticCoord.h>
18 
19 class DtTaitBryan;
20 class DtDcm;
21 
22 namespace makVrv
23 {
24  class DtCoordinateConverter;
25  class DtCoordinateSystem;
26 
27  DT_DLL_VRVUTIL DtTaitBryan orientUp( DtCoordinateConverter& converter,
28  const DtVector& position, const DtTaitBryan& orientation );
29 
30  DT_DLL_VRVUTIL DtDcm orientUpDcm( DtCoordinateConverter& converter,
31  const DtVector& position, const DtTaitBryan& orientation );
32 
34 
38  DT_DLL_VRVUTIL DtQuat DtOrientToVector( DtCoordinateConverter& converter,
39  const DtVector& start, const DtVector& end );
40 
43  DtCoordinateConverter& converter, const DtVector& localLocation,
44  const DtVector& dirVec );
46 
50  DtCoordinateConverter& converter, const DtTaitBryan& cigOri);
51 
53  DT_DLL_VRVUTIL DtTaitBryan DtEastNorthUpToNorthEastDown( const DtTaitBryan& tbIn );
64  DT_DLL_VRVUTIL DtTaitBryan DtNorthEastDownToEastNorthUp( const DtTaitBryan& tbIn );
65  DT_DLL_VRVUTIL DtTaitBryan DtXFrontZDownToYFrontZUp( const DtTaitBryan& tbIn );
66  DT_DLL_VRVUTIL DtTaitBryan DtYFrontZUpToXFrontZDown( const DtTaitBryan& tbIn );
67  DT_DLL_VRVUTIL DtDcm DtEastNorthUpToNorthEastDown( const DtDcm& dcmIn );
68  DT_DLL_VRVUTIL DtDcm DtNorthEastDownToEastNorthUp( const DtDcm& dcmIn );
69  DT_DLL_VRVUTIL DtDcm DtXFrontZDownToYFrontZUp( const DtDcm& dcmIn );
70  DT_DLL_VRVUTIL DtDcm DtYFrontZUpToXFrontZDown( const DtDcm& dcmIn );
72  DT_DLL_VRVUTIL DtDcm DtSwapDcmAxes( const DtDcm& dcmIn );
74  DT_DLL_VRVUTIL DtTaitBryan DtSwapTaitBryanAxes( const DtTaitBryan& tbIn );
76 
78  DT_DLL_VRVUTIL DtGeodeticCoord DtLocalToGeodetic( const DtVector& localLocation,
80  const DtCoordinateSystem& coordSystem );
81  DT_DLL_VRVUTIL DtVector DtGeodeticToLocal( const DtGeodeticCoord& geodeticLocation,
82  const DtCoordinateSystem& coordSystem );
84 }
85 
86 
DT_DLL_VRVUTIL DtGeodeticCoord DtLocalToGeodetic(const DtVector &localLocation, const DtCoordinateSystem &coordSystem)
Convert between local and geodetic locations.
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
DT_DLL_VRVUTIL DtTaitBryan orientUp(DtCoordinateConverter &converter, const DtVector &position, const DtTaitBryan &orientation)
DT_DLL_VRVUTIL DtDcm DtSwapDcmAxes(const DtDcm &dcmIn)
All DCM versions above call this.
DT_DLL_VRVUTIL DtTaitBryan DtXFrontZDownToYFrontZUp(const DtTaitBryan &tbIn)
Contains DLL export macros.
DT_DLL_VRVUTIL DtTaitBryan DtNorthEastDownToEastNorthUp(const DtTaitBryan &tbIn)
DT_DLL_VRVUTIL DtTaitBryan DtYFrontZUpToXFrontZDown(const DtTaitBryan &tbIn)
DT_DLL_VRVUTIL DtVector DtGeodeticToLocal(const DtGeodeticCoord &geodeticLocation, const DtCoordinateSystem &coordSystem)
Contains makVrv::DtQuat class.
DT_DLL_VRVUTIL DtQuat DtOrientToDirectionVector(DtCoordinateConverter &converter, const DtVector &localLocation, const DtVector &dirVec)
This form uses the local location and normalized direction vector provided.
DT_DLL_VRVUTIL DtQuat DtOrientToVector(DtCoordinateConverter &converter, const DtVector &start, const DtVector &end)
DtOrientToVector returns a quaternion that represents a rotation in the direction of the vector...
DT_DLL_VRVUTIL DtTaitBryan DtEastNorthUpToNorthEastDown(const DtTaitBryan &tbIn)
These are all the same method (escept for the different input / return types The DCM (Direction Cosin...
DT_DLL_VRVUTIL DtTaitBryan DtGetLevelOrientation(DtCoordinateConverter &converter, const DtTaitBryan &cigOri)
Take an euler rotation (in local coordinates) and remove any pitch/roll components.
DT_DLL_VRVUTIL DtTaitBryan DtSwapTaitBryanAxes(const DtTaitBryan &tbIn)
All TaitBryan versions above call this.
DT_DLL_VRVUTIL DtDcm orientUpDcm(DtCoordinateConverter &converter, const DtVector &position, const DtTaitBryan &orientation)

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)