This repository has been archived on 2023-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
cad/fusion360/usr/Include/Core/Common/pMathTools.h
2022-10-15 19:16:08 +02:00

47 lines
814 B
C++

#ifndef __XMATH_TOOLS_H__
#define __XMATH_TOOLS_H__
#include "VxMath.h"
#include "NxQuat.h"
namespace pMath
{
VxVector getFromStream(NxVec3 source);
VxQuaternion getFromStream(NxQuat source);
NxVec3 getFromStream(VxVector source);
NxQuat getFromStream(VxQuaternion source);
/*__inline NxVec3 getFrom(const VxVector& sourcein)
{
return NxVec3(sourcein.x,sourcein.y,sourcein.z);
}*/
__inline NxVec3 getFrom(VxVector source)
{
NxVec3 target(0.0f,0.0f,0.0f);
target.x = source.x;
target.y = source.y;
target.z = source.z;
return NxVec3(source.x,source.y,source.z);
}
NxQuat getFrom(VxQuaternion source);
VxQuaternion getFrom(NxQuat source);
__inline VxVector getFrom(NxVec3 source)
{
VxVector result;
source.get(result.v);
return result;
}
}
#endif