expose some global functions

This commit is contained in:
David Rose 2003-11-10 23:10:15 +00:00
parent 8eaa2efe72
commit 2120ffc5a5
4 changed files with 10 additions and 3 deletions

View File

@ -113,6 +113,11 @@ scale_shear_mat(const FLOATNAME(LVecBase3) &scale,
shear._v.v._0 * scale._v.v._1, scale._v.v._1, -shear._v.v._2 * scale._v.v._1,
-shear._v.v._1 * scale._v.v._2, 0.0f, scale._v.v._2);
}
case CS_default:
case CS_invalid:
// These should not be possible.
break;
}
linmath_cat.error()

View File

@ -233,7 +233,9 @@ INLINE_LINMATH ostream &operator << (ostream &out, const FLOATNAME(LMatrix3) &ma
return out;
}
BEGIN_PUBLISH
INLINE_LINMATH FLOATNAME(LMatrix3) transpose(const FLOATNAME(LMatrix3) &a);
INLINE_LINMATH FLOATNAME(LMatrix3) invert(const FLOATNAME(LMatrix3) &a);
END_PUBLISH
#include "lmatrix3_src.I"

View File

@ -228,8 +228,9 @@ INLINE_LINMATH ostream &operator << (ostream &out, const FLOATNAME(LMatrix4) &ma
return out;
}
BEGIN_PUBLISH
INLINE_LINMATH FLOATNAME(LMatrix4) transpose(const FLOATNAME(LMatrix4) &a);
INLINE_LINMATH FLOATNAME(LMatrix4) invert(const FLOATNAME(LMatrix4) &a);
END_PUBLISH
#include "lmatrix4_src.I"

View File

@ -94,9 +94,8 @@ INLINE_LINMATH ostream& operator<<(ostream& os, const FLOATNAME(LQuaternion)& q)
return os;
}
INLINE_LINMATH FLOATNAME(LQuaternion) invert(const FLOATNAME(LQuaternion) &a);
BEGIN_PUBLISH
INLINE_LINMATH FLOATNAME(LQuaternion) invert(const FLOATNAME(LQuaternion) &a);
INLINE_LINMATH FLOATNAME(LMatrix3)
operator * (const FLOATNAME(LMatrix3) &m, const FLOATNAME(LQuaternion) &q);
INLINE_LINMATH FLOATNAME(LMatrix4)