We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In kmSegment2WithSegmentIntersection in ray2.c:
kmSegment2WithSegmentIntersection
if( kmLine2WithLineIntersection( &(segmentA->start), &(segmentA->dir), &(segmentB->start), &(segmentB->start), &ua, &ub, &pt ) && (0.0 <= ua) && (ua <= 1.0) && (0.0 <= ub) && (ub <= 1.0)) { intersection->x = pt.x; intersection->y = pt.y; return KM_TRUE; }
Should be
if( kmLine2WithLineIntersection( &(segmentA->start), &(segmentA->dir), &(segmentB->start), &(segmentB->dir), &ua, &ub, &pt ) && (0.0 <= ua) && (ua <= 1.0) && (0.0 <= ub) && (ub <= 1.0)) { intersection->x = pt.x; intersection->y = pt.y; return KM_TRUE; }
Note the duplicated start in segmentB->start. The second one should be segmentB->dir Not sure this is better than a PR?
segmentB->start
segmentB->dir
Cheers.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In
kmSegment2WithSegmentIntersection
in ray2.c:Should be
Note the duplicated start in
segmentB->start
. The second one should besegmentB->dir
Not sure this is better than a PR?
Cheers.
The text was updated successfully, but these errors were encountered: