This commit is contained in:
LagoLunatic
2025-03-10 20:59:09 -04:00
parent b4a6abb121
commit 8509a38a8e
4 changed files with 13 additions and 16 deletions
+9 -9
View File
@@ -1,7 +1,7 @@
#ifndef C_XYZ_H
#define C_XYZ_H
#include "math.h"
#include "math.h" // IWYU pragma: keep
#include "dolphin/mtx/vec.h"
struct cXy {
@@ -40,12 +40,12 @@ struct cXyz : Vec {
y = vec.y;
z = vec.z;
}
cXyz operator+(Vec const&) const;
cXyz operator-(Vec const&) const;
cXyz operator+(const Vec&) const;
cXyz operator-(const Vec&) const;
cXyz operator*(f32) const;
cXyz operator*(Vec const&) const;
cXyz operator*(const Vec&) const;
cXyz operator/(f32) const;
// void operator=(cXyz const&);
// void operator=(const cXyz&);
void operator+=(f32 f) {
x += f;
@@ -60,16 +60,16 @@ struct cXyz : Vec {
void operator-=(const Vec& other) { VECSubtract(this, &other, this); }
void operator+=(const Vec& other) { VECAdd(this, &other, this); }
void operator*=(f32 scale) { VECScale(this, this, scale); }
cXyz getCrossProduct(Vec const&) const;
cXyz outprod(Vec const&) const;
cXyz getCrossProduct(const Vec&) const;
cXyz outprod(const Vec&) const;
cXyz norm() const;
cXyz normZP() const;
cXyz normZC() const;
cXyz normalize();
cXyz normalizeZP();
bool normalizeRS();
bool operator==(Vec const&) const;
bool operator!=(Vec const&) const;
bool operator==(const Vec&) const;
bool operator!=(const Vec&) const;
bool isZero() const;
s16 atan2sX_Z() const;
s16 atan2sY_XZ() const;
+3 -4
View File
@@ -32,7 +32,7 @@ public:
/* 0x0C */ JPATextureResource* mpTexRes;
};
static void dummy() {
static void dummy(u32 texNum) {
JUT_WARN(0, "%s", "This is WRONG Version File\n");
JUT_WARN(0, "%s", "This is NO JPA File\n");
JPAEmitterData* pEmtrRes;
@@ -42,11 +42,10 @@ static void dummy() {
JUT_ASSERT(0, pLinkInfo);
JUT_ASSERT(0, pLinkInfo->keyBlocks || pLinkInfo->keyNum == 0);
JUT_ASSERT(0, pLinkInfo->fldBlocks || pLinkInfo->fldNum == 0);
u32 texNum;
JUT_ASSERT(0, pLinkInfo->texDataBase || texNum == 0);
u32 fldCntr;
u32 fldCntr = 0;
JUT_ASSERT(0, pLinkInfo->fldBlocks[fldCntr]);
u32 keyCntr;
u32 keyCntr = 0;
JUT_ASSERT(0, pLinkInfo->keyBlocks[keyCntr]);
JUT_ASSERT(0, pLinkInfo->dynBlock);
JUT_ASSERT(0, pLinkInfo->bspBlock);
-2
View File
@@ -5,8 +5,6 @@
#include "SSystem/SComponent/c_xyz.h"
#include "JSystem/JUtility/JUTAssert.h"
#include "float.h"
#include "SSystem/SComponent/c_math.h"
const cXyz cXyz::Zero(0, 0, 0);
const cXyz cXyz::BaseX(1, 0, 0);
+1 -1
View File
@@ -1255,7 +1255,7 @@ BOOL daAgbsw0_c::ExeSubR() {
if(mDoGaC_GbaLink() && mDoGac_SendStatusCheck(5)) {
if(sw0 != 0xFF && fopAcM_isSwitch(this, sw0)) {
s32 itemNo = getParamNo();
if(itemNo < 0 || 0x1E < itemNo) {
if(itemNo < 0 || dItem_TRIPLE_HEART_e < itemNo) {
itemNo = 0;
}