Closed dvdvideo1234 closed 11 months ago
Also in the future add "Fixes #PR" to your PRs so it auto-closes and you don't need to ping for us to close an issue. I've edited it for you
Yeah... I've added this Fixes Issue #..
But is dos not link them or display any activity if that ever happens. I must not have rights or something...
Also in the future add "Fixes #PR" to your PRs so it auto-closes and you don't need to ping for us to close an issue. I've edited it for you
Yeah... I've added this
Fixes Issue #..
But is dos not link them or display any activity if that ever happens. I must not have rights or something...
Permissions don't matter, it just needs to be a specific string that github scans for. Most common is Fixes #PR but theres also Closes #PR and some others afaik
My only concern for it returning two roots and picking the additive one is that it rather must return the root having positive dot product and is closer to the sphere ( The small magenta position being the ray side root and the black one is the other side root. The ray is drawn with blue ). This equation will work in any dimension as long as dot product and length are defined. When origin is outside of the sphere: When origin is inside the sphere: In my 2D complex numbers engine I use this check to swap return values:
if(cO:isInCircle(cC, nR)) then return xP, xM end
return xM, xP -- Outside the circle
Do you agree with this resolution to return the correct circle side @thegrb93 ?
I don't know. Feel free to open a new PR though if more changes are needed.
Fixes #121