Skip to content

Conversation

@mateusfavarin
Copy link
Collaborator

No description provided.


#ifdef TEST_COLL_IMPL

void TEST_COLL_ProjectPointToEdge(const SVec3* v1, const SVec3* v2, const SVec3* point, const SVec3* ret)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For pure functions, this template is probably unchanging. I wonder if there's a way to automate the test functions with macros.

gte_loadSVec(edge.v, GTE_VECTOR_0);
s32 edgeDot, pointDot;
gte_dotProduct(&edgeDot, GTE_ROW_INDEX_0, GTE_MATRIX_ROT, GTE_VECTOR_0);
gte_readMac(&pointDot, GTE_MAC_2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something I notice when I read this, is that I don't have any reason to believe/expect that the output of gte_dotProduct to be in GTE_MAC_2. Do we have a comment on that macro?

@niko1point0 niko1point0 merged commit 48ebb2a into main Sep 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants