-
Notifications
You must be signed in to change notification settings - Fork 234
Implement CurvePrimitive.closestPointXY #8844
New issue
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
base: master
Are you sure you want to change the base?
Conversation
| /** | ||
| * Return true if this ClipShape has a local to world transform | ||
| * @deprecated Use duplicate property [[transformValid]] or type guard [[hasTransformFromClip]] instead. | ||
| * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use duplicate property [[transformValid]] or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dassaf4 I got a lint error for this. Not sure if what I added is accurate. Please confirm.
| * @returns arc in the plane defined by the normal at the intermediate point. If calculation fails, return an | ||
| * arc with zero matrix. | ||
| * @deprecated Prefer [[sectionArcInPlaneOfInterpolatedNormal]], which has expanded return type. | ||
| * @deprecated in 5.0 - will not be removed until after 2026-06-13. Prefer [[sectionArcInPlaneOfInterpolatedNormal]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dassaf4 I got a lint error for this. Not sure if what I added is accurate. Please confirm.
| detailA = child.closestPoint( | ||
| spacePoint, sortedFragment === fragment0 ? extend0 : sortedFragment === fragment1 ? extend1 : false, detailA, | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dassaf4 I realized it had a bug. Fragments are not curve childs. For example my test curve had 3 child but 15 fragments. Because of that extend was not working fine so had to compare make below change to fix it.
No description provided.