Repository navigation
Add Plane.Project - #137015
Open
Manish-1kumar wants to merge 1 commit into
Open
Add Plane.Project#137015Manish-1kumar wants to merge 1 commit into
Manish-1kumar wants to merge 1 commit into
Conversation
Add the Plane.Project(Plane, Vector3) API approved in dotnet#107407, which projects a point onto a normalized plane. Fixes dotnet#107407 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/area-system-numerics |
Manish-1kumar
marked this pull request as draft
November 5, 2026 12:08
Manish-1kumar
marked this pull request as ready for review
November 16, 2026 16:58
This was referenced Nov 17, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the API approved in #107407:
It returns the point on
planeclosest topoint, computed as approved:point - (Dot(plane.Normal, point) + plane.D) * plane.Normal. The implementation reuses the existing vectorizedDotCoordinate, which computesDot(Normal, point) + D.Like
Plane.Transform, the method expects a normalized plane, and this is documented in the remarks.Testing
Plane(the largest rounding error was 2.4e-7, well within the 1e-5 tolerance). CoreLib, the ref (including API compat) and the tests build cleanly.Fixes #107407
🤖 Generated with Claude Code