mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
implement/match CalcLocalTransform (#241)
* implement/match CalcLocalTransform * fix odd build error * address feedback move vec.h to thirdparty folder update vec.h move all realtime code to realtime folder move calclocaltransform out of legoutil and into realtime cast shift to MxS32 add additional unroll hack to CalcLocalTransform to prevent msvc entropy
This commit is contained in:
13
LEGO1/realtime/realtime.h
Normal file
13
LEGO1/realtime/realtime.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef REALTIME_H
|
||||
#define REALTIME_H
|
||||
|
||||
#include "../mxmatrix.h"
|
||||
|
||||
#define NORMVEC3(dst, src) { \
|
||||
MxDouble len = sqrt(NORMSQRD3(src)); \
|
||||
VDS3(dst, src, len); }
|
||||
|
||||
void CalcLocalTransform(const MxVector3 &p_posVec, const MxVector3 &p_dirVec,
|
||||
const MxVector3 &p_upVec, MxMatrix &p_outMatrix);
|
||||
|
||||
#endif // REALTIME_H
|
Reference in New Issue
Block a user