14#include <VxMath/VxMath.h>
15#include <geometry/point.h>
16#include <matrix/vlVector.h>
17#include <geometry/extent.h>
135#define CoerceToDtVector(x) *((DtVector*)(&x[0]))
138#define CoerceToVxReal3(x) *((Vx::VxReal3*)(&x[0]))
141#define CoerceToVxVector(x) *((VxMath::Vector3*)(&x[0]))
144#define printVec(vec) std::fixed << std::setprecision(8) << "{" << vec[0] << ", " << vec[1] << ", " << vec[2] << "}"
147#define printTransform(tm) \
148 std::fixed << std::setprecision(8) << "[" << tm[0][0] << ", " << tm[0][1] << ", " << tm[0][2] << ", " << tm[0][3] \
149 << "]" << std::endl \
150 << "[" << tm[1][0] << ", " << tm[1][1] << ", " << tm[1][2] << ", " << tm[1][3] << "]" << std::endl \
151 << "[" << tm[2][0] << ", " << tm[2][1] << ", " << tm[2][2] << ", " << tm[2][3] << "]" << std::endl \
152 << "[" << tm[3][0] << ", " << tm[3][1] << ", " << tm[3][2] << ", " << tm[3][3] << "]"
155#define printMatrix(tm) \
156 std::fixed << std::setprecision(8) << "[" << tm(0, 0) << ", " << tm(0, 1) << ", " << tm(0, 2) << ", " << tm(0, 3) \
157 << "]" << std::endl \
158 << "[" << tm(1, 0) << ", " << tm(1, 1) << ", " << tm(1, 2) << ", " << tm(1, 3) << "]" << std::endl \
159 << "[" << tm(2, 0) << ", " << tm(2, 1) << ", " << tm(2, 2) << ", " << tm(2, 3) << "]" << std::endl \
160 << "[" << tm(3, 0) << ", " << tm(3, 1) << ", " << tm(3, 2) << ", " << tm(3, 3) << "]"
166#define PROFILER_ZONE_COLOR(color) ZoneNamedC(___tracy_scoped_zone, color, makVrf::DtProfiler::collectTracyStats());
169#define PROFILER_SECTION_COLOR(text, color) \
171 ZoneNamedNC(___tracy_scoped_zone, text, color, makVrf::DtProfiler::collectTracyStats());
174#define APPLICATION_COLOR_PROFILE 0x006400
177#define PROFILE_VX_APPLICATION_ZONE PROFILER_ZONE_COLOR(APPLICATION_COLOR_PROFILE);
180#define PROFILE_VX_APPLICATION_SECTION(text) PROFILER_SECTION_COLOR(text, APPLICATION_COLOR_PROFILE);
183#define PROFILE_VX_APPLICATION_SECTION_END DtPROFILE_SECTION_END
186#define TERRAIN_COLOR_PROFILE tracy::Color::DodgerBlue3
189#define PROFILE_VX_TERRAIN_ZONE PROFILER_ZONE_COLOR(TERRAIN_COLOR_PROFILE);
192#define PROFILE_VX_TERRAIN_SECTION(text) PROFILER_SECTION_COLOR(text, TERRAIN_COLOR_PROFILE);
195#define PROFILE_VX_TERRAIN_SECTION_END DtPROFILE_SECTION_END
198#define DYNAMIC_TERRAIN_COLOR_PROFILE tracy::Color::LightSalmon4
201#define PROFILE_VX_DYNAMIC_TERRAIN_ZONE PROFILER_ZONE_COLOR(DYNAMIC_TERRAIN_COLOR_PROFILE);
204#define PROFILE_VX_DYNAMIC_TERRAIN_SECTION(text) PROFILER_SECTION_COLOR(text, DYNAMIC_TERRAIN_COLOR_PROFILE);
207#define PROFILE_VX_DYNAMIC_TERRAIN_SECTION_END DtPROFILE_SECTION_END
210#define ACTUATOR_COLOR_PROFILE tracy::Color::DarkOliveGreen3
213#define PROFILE_VX_ACTUATOR_ZONE PROFILER_ZONE_COLOR(ACTUATOR_COLOR_PROFILE);
216#define PROFILE_VX_ACTUATOR_SECTION(text) PROFILER_SECTION_COLOR(text, ACTUATOR_COLOR_PROFILE);
219#define PROFILE_VX_ACTUATOR_SECTION_END DtPROFILE_SECTION_END
Export macros for the VR-Forces Vortex extension library.
#define VREVRFVORTEX_DLL
Export macro for non-Windows platforms.
Definition export.h:30
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
void VREVRFVORTEX_DLL ConvertFlatEarthToVortex(const DtVector &input, DtVector &output)
Converts a vector from flat earth coordinates to Vortex (NWU) coordinates.
DtVector getDtVector(const VxMath::Vector3 &input)
Creates a DtVector from a Vortex Vector3.
VxMath::Vector3 getVxVector(const DtVector &input)
Creates a Vortex Vector3 from a DtVector.
void VREVRFVORTEX_DLL ConvertDISBodyToVortex(const DtVector &input, DtVector &output)
Converts a vector from DIS body coordinates (NED) to Vortex (NWU) coordinates.
bool VREVRFVORTEX_DLL doesExtentContainPoint(const DtExtent &ext, const DtVector &vec)
Checks if an extent contains a DtVector point.
void VREVRFVORTEX_DLL ConvertVortexToDISBody(const DtVector &input, DtVector &output)
Converts a vector from Vortex (NWU) coordinates to DIS body coordinates (NED)
void VREVRFVORTEX_DLL ConvertVxVector3ToDtVector(const VxMath::Vector3 &input, DtVector &output)
Converts a Vortex Vector3 to a DtVector.
void VREVRFVORTEX_DLL ConvertDtVectorToVxVector3(const DtVector &input, VxMath::Vector3 &output)
Converts a DtVector to a Vortex Vector3.
bool VREVRFVORTEX_DLL doesBoundingBoxContainPoint(const VxMath::BoundingBox &bb, const DtVector &vec)
Checks if a bounding box contains a DtVector point.
bool isValidVortexLocalObject(DtLocalObject *obj)
Returns whether or not a local object is a valid vortex entity.
void VREVRFVORTEX_DLL ConvertVortexToFlatEarth(const DtVector &input, DtVector &output)
Converts a vector from Vortex (NWU) coordinates to flat earth coordinates.
bool VREVRFVORTEX_DLL doesBoundingBoxInclude(const VxMath::BoundingBox &bbOne, VxMath::BoundingBox &bbTwo)
Checks if one bounding box fully includes another.