VR-Engage  2.2
Loading...
Searching...
No Matches
maths.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*********************************************************************************/
5
6//! \file maths.h
7//! \ingroup vreUtil
8//! \brief Utility functions for (3D) maths
9
10#pragma once
11
12#include "export.h"
13
14#include "matrix/vlVector.h"
15#include "matrix/vlTaitBryan.h"
16
17namespace makVre
18{
19
20//! \brief Gets the forward vector from an orientation
21//! \param ori Input: Orientation as Tait-Bryan angles
22//! \param fwd Output: Vector to be set to the Forward vector
23//!
24//! Converts Tait-Bryan angles to a direction cosine matrix and
25//! extracts the forward-pointing vector
26UTIL_DLL void getForwardVectorFromOrientation(const DtTaitBryan& ori, DtVector32& fwd);
27
28} // namespace makVre
Defines export macros for the VREngage Utility library.
#define UTIL_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
UTIL_DLL void getForwardVectorFromOrientation(const DtTaitBryan &ori, DtVector32 &fwd)
Gets the forward vector from an orientation.