mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-05 17:43:23 -04:00
Fix d_a_npc_md inline usage
This commit is contained in:
@@ -57,8 +57,12 @@ template <>
|
||||
struct TVec3<s16> : public SVec {
|
||||
TVec3() {}
|
||||
TVec3(const SVec& b) { set(b); }
|
||||
|
||||
template<typename s16>
|
||||
TVec3(s16 x, s16 y, s16 z) { set(x, y, z); }
|
||||
|
||||
TVec3(int x, int y, int z) { set(x, y, z); }
|
||||
|
||||
void set(const SVec& vec) {
|
||||
x = vec.x;
|
||||
y = vec.y;
|
||||
@@ -82,6 +86,7 @@ template <>
|
||||
struct TVec3<f32> : public Vec {
|
||||
TVec3() {}
|
||||
|
||||
template<typename f32>
|
||||
TVec3(f32 x, f32 y, f32 z) { set(x, y, z); }
|
||||
|
||||
TVec3(const Vec& b) { set(b); }
|
||||
|
||||
@@ -20,7 +20,7 @@ struct SMatrix34C<f32> {
|
||||
typedef f32 ArrType[4];
|
||||
void set(const ArrType* src) { JMath::gekko_ps_copy12((f32*)data, (f32*)src); }
|
||||
|
||||
operator ArrType*() { return data; }
|
||||
operator ArrType*() const { return (ArrType*)data; }
|
||||
operator const ArrType*() const { return data; }
|
||||
};
|
||||
|
||||
@@ -37,4 +37,4 @@ typedef TPosition3<TRotation3<TMatrix34<SMatrix34C<f32> > > > TPosition3f32;
|
||||
|
||||
} // namespace JGeometry
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user