You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case, it is better to make this method static for Vector3, similar to Vector3.Transform methods.
@PavielKraskouski can you elaborate why it is better? Are you arguing just for consistency with Vector3.Transform, or is there more to it?
I think the extension method approach not only makes this more intuitive to use, but also more discoverable.
I do agree that Vector3.Project seems more intuitive than Plane.Project though as the latter gives the impression you are "projecting the plane", which is not really what is happening.
@julealgon My main argument is that .Net doesn't have a separate extension method class for vectors, so I think creating a class with one method is impractical. However, if .Net developers approve this method, they'll decide where to add it.
Activity
dotnet-policy-service commentedon Sep 5, 2024
Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.
julealgon commentedon Sep 5, 2024
Wouldn't this be more intuitive if it was an extension on
Vectorinstead of a purestaticmethod?PavielKraskouski commentedon Sep 5, 2024
In this case, it is better to make this method static for
Vector3, similar toVector3.Transformmethods.julealgon commentedon Sep 5, 2024
@PavielKraskouski can you elaborate why it is better? Are you arguing just for consistency with
Vector3.Transform, or is there more to it?I think the extension method approach not only makes this more intuitive to use, but also more discoverable.
I do agree that
Vector3.Projectseems more intuitive thanPlane.Projectthough as the latter gives the impression you are "projecting the plane", which is not really what is happening.PavielKraskouski commentedon Sep 5, 2024
@julealgon My main argument is that .Net doesn't have a separate extension method class for vectors, so I think creating a class with one method is impractical. However, if .Net developers approve this method, they'll decide where to add it.
bartonjs commentedon Oct 13, 2026
Video
Looks good as proposed.
Manish-1kumar commentedon Nov 5, 2026
I'd like to take this one and will open a PR implementing the approved
Plane.Project(Plane, Vector3)with tests.