math: add tests for vec2,3,4 perpendicular#25840
Conversation
|
It may conflict with #25841 because of the inversion of u and v |
|
I am firmly certain that this PR is suspicious. @Linklancien |
|
The main issue I wanted to fix was to introduce a tests for the the perpendicular function to avoid regressions |
|
Our namespace glm
{
template<typename genType>
GLM_FUNC_QUALIFIER genType perp(genType const& x, genType const& Normal)
{
return x - proj(x, Normal);
}
}//namespace glm |
Yes it is |
|
This PR does not pass its tests either before or after rebasing on #25841 (which is now merged). Imho there is a bug somewhere. |
|
Thoses push should be good and only add test for perpendicular |
|
You need to |
|
Oh no |
|
I forgot to fmt |
|
Something useful if you're working on V itself... From
|
|
Side note: Perhaps that pre-commit trigger should be set by default in the V repo. Would solve this particular "headache" for new people, and perhaps help some not-so-new. |
how? should it be put in the makefiles? |
I did read that but didn't understand where to execute the command even if it seemed really usefull |
|
I am using the git hook for several years at this point daily, so I guess it is stable enough (I only occasionally have to pass |
It has to be done in a shell where you have done |
That would be one way, for certain. |
spytheman
left a comment
There was a problem hiding this comment.
It looks good to me now, and it is ready to be merged.
@tankf33der what do you think?
tankf33der
left a comment
There was a problem hiding this comment.
The main thing is that our perpendicular() function is correct and new tests never hurt.
|
@spytheman lets merge. |
|
Thank you @Linklancien 🙇🏻 . |
This PR fix an issue cause because of the change of the project function
It also add some test to assure that won't happend again