Import project

Original repository: https://github.com/encounter/ww
This commit is contained in:
Luke Street
2023-09-10 00:42:26 -04:00
parent 81ac53f131
commit adb95b135c
3731 changed files with 481532 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
//
// Generated by dtk
// Translation Unit: c_m3d_g_cyl.cpp
//
#include "SSystem/SComponent/c_m3d_g_cyl.h"
#include "SSystem/SComponent/c_m3d.h"
#include "JSystem/JUtility/JUTAssert.h"
#include "MSL_C/float.h"
#define CHECK_FLOAT_CLASS(x) !(((sizeof(x) == sizeof(float)) ? __fpclassifyf((float)(x)) : __fpclassifyd( (double)(x)) ) == 1)
#define CHECK_FLOAT_RANGE(x) -1.0e32f < x && x < 1.0e32f
/* 80251D88-80252020 .text SetC__8cM3dGCylFRC4cXyz */
void cM3dGCyl::SetC(const cXyz& pos) {
JUT_ASSERT("c_m3d_g_cyl.cpp", 21, CHECK_FLOAT_CLASS(pos.x));
JUT_ASSERT("c_m3d_g_cyl.cpp", 22, CHECK_FLOAT_CLASS(pos.y));
JUT_ASSERT("c_m3d_g_cyl.cpp", 23, CHECK_FLOAT_CLASS(pos.z));
JUT_ASSERT("c_m3d_g_cyl.cpp", 26, CHECK_FLOAT_RANGE(pos.x) && CHECK_FLOAT_RANGE(pos.y) && CHECK_FLOAT_RANGE(pos.z));
mCenter = pos;
}
/* 80252020-8025214C .text SetH__8cM3dGCylFf */
void cM3dGCyl::SetH(f32 h) {
JUT_ASSERT("c_m3d_g_cyl.cpp", 36, CHECK_FLOAT_CLASS(h));
JUT_ASSERT("c_m3d_g_cyl.cpp", 37, CHECK_FLOAT_RANGE(h));
mHeight = h;
}
/* 8025214C-80252278 .text SetR__8cM3dGCylFf */
void cM3dGCyl::SetR(f32 r) {
JUT_ASSERT("c_m3d_g_cyl.cpp", 48, CHECK_FLOAT_CLASS(r));
JUT_ASSERT("c_m3d_g_cyl.cpp", 49, CHECK_FLOAT_RANGE(r));
mRadius = r;
}
/* 80252278-8025229C .text cross__8cM3dGCylCFPC8cM3dGSphP4cXyz */
bool cM3dGCyl::cross(const cM3dGSph* pOther, cXyz* pOut) const {
f32 f;
return cM3d_Cross_CylSph(this, pOther, pOut, &f);
}
/* 8025229C-802522BC .text cross__8cM3dGCylCFPC8cM3dGCylPf */
bool cM3dGCyl::cross(const cM3dGCyl* pOther, f32* pOut) const {
return cM3d_Cross_CylCyl(this, pOther, pOut);
}
/* 802522BC-802522DC .text cross__8cM3dGCylCFPC8cM3dGCylP4cXyz */
bool cM3dGCyl::cross(const cM3dGCyl* pOther, cXyz* pOut) const {
return cM3d_Cross_CylCyl(this, pOther, pOut);
}
/* 802522DC-80252304 .text cross__8cM3dGCylCFPC8cM3dGSphPf */
bool cM3dGCyl::cross(const cM3dGSph* pOther, f32* pOut) const {
cXyz xyz;
return cM3d_Cross_CylSph(this, pOther, &xyz, pOut);
}